Last change
on this file since 46712 was 44529, checked in by vboxsync, 12 years ago |
header (C) fixes
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id
|
File size:
1.2 KB
|
Line | |
---|
1 | ; $Id: tstAsmLock-3.asm 44529 2013-02-04 15:54:15Z 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-2010 Oracle Corporation
|
---|
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 |
|
---|
21 | %include "tstAsm.mac"
|
---|
22 |
|
---|
23 | BITS TEST_BITS
|
---|
24 |
|
---|
25 | lock mov ebp, esp
|
---|
26 | lock mov byte [0], 0
|
---|
27 | lock mov word [0], 0
|
---|
28 | lock mov dword [0], 0
|
---|
29 | lock mov word [0], 01234h
|
---|
30 | lock mov dword [0], 012348765h
|
---|
31 | lock mov byte [ebx], 0
|
---|
32 | lock mov [ebx], eax
|
---|
33 | lock mov [ebx], ax
|
---|
34 | lock mov [ebx], al
|
---|
35 | lock mov [ebx], edx
|
---|
36 | lock mov [ebx], dx
|
---|
37 | lock mov [ebx], dl
|
---|
38 | lock ret
|
---|
39 | %if TEST_BITS != 64
|
---|
40 | lock pop ebp
|
---|
41 | lock push esp
|
---|
42 | %else
|
---|
43 | lock pop rbp
|
---|
44 | lock push rsp
|
---|
45 | %endif
|
---|
46 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.