VirtualBox

source: vbox/trunk/src/VBox/Disassembler/DisasmTestA.asm@ 4953

Last change on this file since 4953 was 4071, checked in by vboxsync, 17 years ago

Biggest check-in ever. New source code headers for all (C) innotek files.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 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 as published by the Free Software Foundation,
12; in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
13; distribution. VirtualBox OSE is distributed in the hope that it will
14; be useful, but WITHOUT ANY WARRANTY of any kind.
15
16;*******************************************************************************
17;* Header Files *
18;*******************************************************************************
19%include "VBox/nasm.mac"
20%include "VBox/vm.mac"
21%include "VBox/err.mac"
22%include "VBox/stam.mac"
23%include "VBox/x86.mac"
24
25BITS 32
26
27BEGINCODE
28
29align 16
30BEGINPROC TestProc
31 movzx eax,byte [edx]
32 movzx eax,word [edx]
33; mov dword es:[ebx + 1234h], 0789h
34; mov word fs:[ebx + ecx], 0654h
35; mov byte [esi + eax*4], 0654h
36; mov bl, byte ds:[ebp + 1234h]
37; mov al, cs:[1234h + ecx*8]
38; mov al, cs:[1234h]
39; mov ax, cs:[1234h]
40; mov eax, cs:[1234h]
41 movzx ESI,word [EAX]
42 in al, dx
43 in ax, dx
44 in eax, dx
45 mov ebx, [ecx + eax*4 + 17]
46 mov ebx, [ebp + eax*4 + 4]
47 mov ebx, [ebp + eax*4]
48 int 80h
49 in al, 60h
50 in ax, dx
51 out 64h, eax
52
53 movss xmm0, xmm1
54 movsd xmm6, xmm1
55
56 pause
57
58ENDPROC TestProc
59
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette