VirtualBox

source: vbox/trunk/src/VBox/Disassembler/testcase/tstAsmMovFixedReg-1.asm@ 103914

Last change on this file since 103914 was 98103, checked in by vboxsync, 2 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1; $Id: tstAsmMovFixedReg-1.asm 98103 2023-01-17 14:15:46Z vboxsync $
2;; @file
3; Disassembly testcase - Valid mov immediate to fixed 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) 2013-2023 Oracle and/or its affiliates.
12;
13; This file is part of VirtualBox base platform packages, as
14; available from https://www.virtualbox.org.
15;
16; This program is free software; you can redistribute it and/or
17; modify it under the terms of the GNU General Public License
18; as published by the Free Software Foundation, in version 3 of the
19; License.
20;
21; This program is distributed in the hope that it will be useful, but
22; WITHOUT ANY WARRANTY; without even the implied warranty of
23; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24; General Public License for more details.
25;
26; You should have received a copy of the GNU General Public License
27; along with this program; if not, see <https://www.gnu.org/licenses>.
28;
29; SPDX-License-Identifier: GPL-3.0-only
30;
31
32 BITS TEST_BITS
33
34 mov al, 01h
35 mov cl, 02h
36 mov dl, 03h
37 mov bl, 04h
38 mov ah, 05h
39 mov ch, 06h
40 mov dh, 07h
41 mov bh, 08h
42%if TEST_BITS == 64
43 mov spl, 09h
44 mov bpl, 0ah
45 mov sil, 0bh
46 mov dil, 0ch
47 mov r8b, 0dh
48 mov r9b, 0eh
49 mov r10b, 0fh
50 mov r11b, 010h
51 mov r12b, 011h
52 mov r13b, 012h
53 mov r14b, 013h
54 mov r15b, 014h
55%endif
56
57 mov ax, 0f701h
58 mov cx, 0f702h
59 mov dx, 0f703h
60 mov bx, 0f704h
61 mov sp, 0f705h
62 mov bp, 0f706h
63 mov si, 0f707h
64 mov di, 0f708h
65%if TEST_BITS == 64
66 mov r8w, 0f709h
67 mov r9w, 0f70ah
68 mov r10w, 0f70bh
69 mov r11w, 0f70ch
70 mov r12w, 0f70dh
71 mov r13w, 0f70eh
72 mov r14w, 0f70fh
73 mov r15w, 0f710h
74%endif
75
76 mov eax, 0beeff701h
77 mov ecx, 0beeff702h
78 mov edx, 0beeff703h
79 mov ebx, 0beeff704h
80 mov esp, 0beeff705h
81 mov ebp, 0beeff706h
82 mov esi, 0beeff707h
83 mov edi, 0beeff708h
84%if TEST_BITS == 64
85 mov r8d, 0beeff709h
86 mov r9d, 0beeff70ah
87 mov r10d, 0beeff70bh
88 mov r11d, 0beeff70ch
89 mov r12d, 0beeff70dh
90 mov r13d, 0beeff70eh
91 mov r14d, 0beeff70fh
92 mov r15d, 0beeff710h
93%endif
94
95%if TEST_BITS == 64
96 mov rax, 0feedbabef00df701h
97 mov rcx, 0feedbabef00df702h
98 mov rdx, 0feedbabef00df703h
99 mov rbx, 0feedbabef00df704h
100 mov rsp, 0feedbabef00df705h
101 mov rbp, 0feedbabef00df706h
102 mov rsi, 0feedbabef00df707h
103 mov rdi, 0feedbabef00df708h
104 mov r8, 0feedbabef00df709h
105 mov r9, 0feedbabef00df70ah
106 mov r10, 0feedbabef00df70bh
107 mov r11, 0feedbabef00df70ch
108 mov r12, 0feedbabef00df70dh
109 mov r13, 0feedbabef00df70eh
110 mov r14, 0feedbabef00df70fh
111 mov r15, 0feedbabef00df710h
112%endif
113
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