VirtualBox

source: vbox/trunk/src/VBox/Disassembler/testcase/tstAsmRegs-1.asm@ 13328

Last change on this file since 13328 was 9925, checked in by vboxsync, 16 years ago

Yasm formatter: Fixes for sil, dil, spl, bpl and r8b-r15b.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1; $Id: tstAsmRegs-1.asm 9925 2008-06-25 14:42:31Z vboxsync $
2;; @file
3; Disassembly testcase - Accessing all the registers
4;
5; This is a build test, that means it will be assembled, disassembled,
6; then the disassembly output will be assembled and the new binary will
7; compared with the original.
8;
9
10;
11; Copyright (C) 2008 Sun Microsystems, Inc.
12;
13; This file is part of VirtualBox Open Source Edition (OSE), as
14; available from http://www.virtualbox.org. This file is free software;
15; you can redistribute it and/or modify it under the terms of the GNU
16; General Public License (GPL) as published by the Free Software
17; Foundation, in version 2 as it comes in the "COPYING" file of the
18; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
19; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
20;
21; Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
22; Clara, CA 95054 USA or visit http://www.sun.com if you need
23; additional information or have any questions.
24;
25
26%include "tstAsm.mac"
27
28 BITS TEST_BITS
29
30 ;; @todo
31 ; Missing a bunch of permutations and encoding variants
32 ;
33
34 mov al, al
35 mov al, ah
36 mov al, bl
37 mov al, bh
38 mov al, cl
39 mov al, ch
40 mov al, dl
41 mov al, dh
42%if TEST_BITS == 64
43 mov al, dil
44 mov al, sil
45 mov al, bpl
46 mov al, spl
47 mov al, r8b
48 mov al, r9b
49 mov al, r10b
50 mov al, r11b
51 mov al, r12b
52 mov al, r13b
53 mov al, r14b
54 mov al, r15b
55%endif
56
57 mov ax, ax
58 mov ax, bx
59 mov ax, cx
60 mov ax, dx
61 mov ax, si
62 mov ax, di
63 mov ax, bp
64 mov ax, sp
65%if TEST_BITS == 64
66 mov ax, r8w
67 mov ax, r9w
68 mov ax, r10w
69 mov ax, r11w
70 mov ax, r12w
71 mov ax, r13w
72 mov ax, r14w
73 mov ax, r15w
74%endif
75
76 mov eax, eax
77 mov eax, ebx
78 mov eax, ecx
79 mov eax, edx
80 mov eax, esi
81 mov eax, edi
82 mov eax, ebp
83 mov eax, esp
84%if TEST_BITS == 64
85 mov eax, r8d
86 mov eax, r9d
87 mov eax, r10d
88 mov eax, r11d
89 mov eax, r12d
90 mov eax, r13d
91 mov eax, r14d
92 mov eax, r15d
93%endif
94
95%if TEST_BITS == 64
96 mov rax, rax
97 mov rax, rbx
98 mov rax, rcx
99 mov rax, rdx
100 mov rax, rsi
101 mov rax, rdi
102 mov rax, rbp
103 mov rax, rsp
104 mov rax, r8
105 mov rax, r9
106 mov rax, r10
107 mov rax, r11
108 mov rax, r12
109 mov rax, r13
110 mov rax, r14
111 mov rax, r15
112%endif
113
114
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