Last change
on this file since 74473 was 69373, checked in by vboxsync, 7 years ago |
DIS: scm updates
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
2.3 KB
|
Line | |
---|
1 | ; $Id: tstAsmRegs-1.asm 69373 2017-10-26 15:38:48Z 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-2017 Oracle Corporation
|
---|
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 |
|
---|
22 | %include "tstAsm.mac"
|
---|
23 |
|
---|
24 | BITS TEST_BITS
|
---|
25 |
|
---|
26 | ;; @todo
|
---|
27 | ; Missing a bunch of permutations and encoding variants
|
---|
28 | ;
|
---|
29 |
|
---|
30 | mov al, al
|
---|
31 | mov al, ah
|
---|
32 | mov al, bl
|
---|
33 | mov al, bh
|
---|
34 | mov al, cl
|
---|
35 | mov al, ch
|
---|
36 | mov al, dl
|
---|
37 | mov al, dh
|
---|
38 | %if TEST_BITS == 64
|
---|
39 | mov al, dil
|
---|
40 | mov al, sil
|
---|
41 | mov al, bpl
|
---|
42 | mov al, spl
|
---|
43 | mov al, r8b
|
---|
44 | mov al, r9b
|
---|
45 | mov al, r10b
|
---|
46 | mov al, r11b
|
---|
47 | mov al, r12b
|
---|
48 | mov al, r13b
|
---|
49 | mov al, r14b
|
---|
50 | mov al, r15b
|
---|
51 | %endif
|
---|
52 |
|
---|
53 | mov ax, ax
|
---|
54 | mov ax, bx
|
---|
55 | mov ax, cx
|
---|
56 | mov ax, dx
|
---|
57 | mov ax, si
|
---|
58 | mov ax, di
|
---|
59 | mov ax, bp
|
---|
60 | mov ax, sp
|
---|
61 | %if TEST_BITS == 64
|
---|
62 | mov ax, r8w
|
---|
63 | mov ax, r9w
|
---|
64 | mov ax, r10w
|
---|
65 | mov ax, r11w
|
---|
66 | mov ax, r12w
|
---|
67 | mov ax, r13w
|
---|
68 | mov ax, r14w
|
---|
69 | mov ax, r15w
|
---|
70 | %endif
|
---|
71 |
|
---|
72 | mov eax, eax
|
---|
73 | mov eax, ebx
|
---|
74 | mov eax, ecx
|
---|
75 | mov eax, edx
|
---|
76 | mov eax, esi
|
---|
77 | mov eax, edi
|
---|
78 | mov eax, ebp
|
---|
79 | mov eax, esp
|
---|
80 | %if TEST_BITS == 64
|
---|
81 | mov eax, r8d
|
---|
82 | mov eax, r9d
|
---|
83 | mov eax, r10d
|
---|
84 | mov eax, r11d
|
---|
85 | mov eax, r12d
|
---|
86 | mov eax, r13d
|
---|
87 | mov eax, r14d
|
---|
88 | mov eax, r15d
|
---|
89 | %endif
|
---|
90 |
|
---|
91 | %if TEST_BITS == 64
|
---|
92 | mov rax, rax
|
---|
93 | mov rax, rbx
|
---|
94 | mov rax, rcx
|
---|
95 | mov rax, rdx
|
---|
96 | mov rax, rsi
|
---|
97 | mov rax, rdi
|
---|
98 | mov rax, rbp
|
---|
99 | mov rax, rsp
|
---|
100 | mov rax, r8
|
---|
101 | mov rax, r9
|
---|
102 | mov rax, r10
|
---|
103 | mov rax, r11
|
---|
104 | mov rax, r12
|
---|
105 | mov rax, r13
|
---|
106 | mov rax, r14
|
---|
107 | mov rax, r15
|
---|
108 | %endif
|
---|
109 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.