VirtualBox

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

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

Wrote up the makefile bits or the dissassembler test 'framework' and hacked together a yasmification of the DIS output sufficient to make the current tests work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1; $Id: tstAsmLock-3.asm 8937 2008-05-20 00:52:26Z 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 BITS TEST_BITS
26
27 lock mov ebp, esp
28 lock mov byte [0], 0
29 lock mov word [0], 0
30 lock mov dword [0], 0
31 lock mov word [0], 01234h
32 lock mov dword [0], 012348765h
33 lock mov byte [ebx], 0
34 lock mov [ebx], eax
35 lock mov [ebx], ax
36 lock mov [ebx], al
37 lock mov [ebx], edx
38 lock mov [ebx], dx
39 lock mov [ebx], dl
40 lock ret
41%if TEST_BITS != 64
42 lock pop ebp
43 lock push esp
44%else
45 lock pop rbp
46 lock push rsp
47%endif
48
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