Last change
on this file since 7108 was 5999, checked in by vboxsync, 17 years ago |
The Giant CDDL Dual-License Header Change.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.7 KB
|
Line | |
---|
1 | ;
|
---|
2 | ; VBox disassembler:
|
---|
3 | ; Assembler test routines
|
---|
4 |
|
---|
5 | ;
|
---|
6 | ; Copyright (C) 2006-2007 innotek GmbH
|
---|
7 | ;
|
---|
8 | ; This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | ; available from http://www.virtualbox.org. This file is free software;
|
---|
10 | ; you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | ; General Public License (GPL) as published by the Free Software
|
---|
12 | ; Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
13 | ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
14 | ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | ;
|
---|
16 |
|
---|
17 | ;*******************************************************************************
|
---|
18 | ;* Header Files *
|
---|
19 | ;*******************************************************************************
|
---|
20 | %include "VBox/nasm.mac"
|
---|
21 | %include "VBox/vm.mac"
|
---|
22 | %include "VBox/err.mac"
|
---|
23 | %include "VBox/stam.mac"
|
---|
24 | %include "VBox/x86.mac"
|
---|
25 |
|
---|
26 | BITS 32
|
---|
27 |
|
---|
28 | BEGINCODE
|
---|
29 |
|
---|
30 | align 16
|
---|
31 | BEGINPROC TestProc
|
---|
32 | movzx eax,byte [edx]
|
---|
33 | movzx eax,word [edx]
|
---|
34 | ; mov dword es:[ebx + 1234h], 0789h
|
---|
35 | ; mov word fs:[ebx + ecx], 0654h
|
---|
36 | ; mov byte [esi + eax*4], 0654h
|
---|
37 | ; mov bl, byte ds:[ebp + 1234h]
|
---|
38 | ; mov al, cs:[1234h + ecx*8]
|
---|
39 | ; mov al, cs:[1234h]
|
---|
40 | ; mov ax, cs:[1234h]
|
---|
41 | ; mov eax, cs:[1234h]
|
---|
42 | lock cmpxchg [ecx], eax
|
---|
43 | lock cmpxchg [ecx], ax
|
---|
44 | lock cmpxchg [ecx], dl
|
---|
45 | movzx ESI,word [EAX]
|
---|
46 | in al, dx
|
---|
47 | in ax, dx
|
---|
48 | in eax, dx
|
---|
49 | mov ebx, [ecx + eax*4 + 17]
|
---|
50 | mov ebx, [ebp + eax*4 + 4]
|
---|
51 | mov ebx, [ebp + eax*4]
|
---|
52 | int 80h
|
---|
53 | in al, 60h
|
---|
54 | in ax, dx
|
---|
55 | out 64h, eax
|
---|
56 |
|
---|
57 | movss xmm0, xmm1
|
---|
58 | movsd xmm6, xmm1
|
---|
59 |
|
---|
60 | pause
|
---|
61 |
|
---|
62 | ENDPROC TestProc
|
---|
63 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.