VirtualBox

source: vbox/trunk/src/VBox/Disassembler/testcase/tstAsmLock-3.asm@ 13328

Last change on this file since 13328 was 8966, checked in by vboxsync, 17 years ago

ADC tests.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1; $Id: tstAsmLock-3.asm 8966 2008-05-20 16:48:02Z vboxsync $
2;; @file
3; Disassembly testcase - Invalid lock sequences for non-locking instructions.
4;
5; The intention is to check in a binary using the --all-invalid mode
6; of tstDisasm-2.
7;
8
9;
10; Copyright (C) 2008 Sun Microsystems, Inc.
11;
12; This file is part of VirtualBox Open Source Edition (OSE), as
13; available from http://www.virtualbox.org. This file is free software;
14; you can redistribute it and/or modify it under the terms of the GNU
15; General Public License (GPL) as published by the Free Software
16; Foundation, in version 2 as it comes in the "COPYING" file of the
17; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
18; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
19;
20; Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
21; Clara, CA 95054 USA or visit http://www.sun.com if you need
22; additional information or have any questions.
23;
24
25%include "tstAsm.mac"
26
27 BITS TEST_BITS
28
29 lock mov ebp, esp
30 lock mov byte [0], 0
31 lock mov word [0], 0
32 lock mov dword [0], 0
33 lock mov word [0], 01234h
34 lock mov dword [0], 012348765h
35 lock mov byte [ebx], 0
36 lock mov [ebx], eax
37 lock mov [ebx], ax
38 lock mov [ebx], al
39 lock mov [ebx], edx
40 lock mov [ebx], dx
41 lock mov [ebx], dl
42 lock ret
43%if TEST_BITS != 64
44 lock pop ebp
45 lock push esp
46%else
47 lock pop rbp
48 lock push rsp
49%endif
50
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