VirtualBox

source: vbox/trunk/src/VBox/Disassembler/testcase/tstAsmMovSeg-1.asm@ 74473

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 Id Revision
File size: 1.1 KB
Line 
1; $Id: tstAsmMovSeg-1.asm 69373 2017-10-26 15:38:48Z vboxsync $
2;; @file
3; Disassembly testcase - Valid mov from/to segment instructions.
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 BITS TEST_BITS
23
24 mov fs, eax
25 mov fs, ax
26%if TEST_BITS == 64
27 mov fs, rax
28%endif
29
30 mov fs, [ebx]
31%if TEST_BITS != 64
32 mov fs, [bx]
33%else
34 mov fs, [rbx]
35%endif
36
37 mov ax, fs
38 mov eax, fs
39%if TEST_BITS == 64
40 mov rax, fs
41%endif
42
43 mov [ebx], fs
44%if TEST_BITS != 64
45 mov [bx], fs
46%else
47 mov [rbx], fs
48%endif
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