Last change
on this file since 96407 was 96407, checked in by vboxsync, 2 years ago |
scm copyright and license note update
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id Revision
|
File size:
1.4 KB
|
Line | |
---|
1 | ; $Id: tstAsmLock-3.asm 96407 2022-08-22 17:43:14Z 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-2022 Oracle and/or its affiliates.
|
---|
11 | ;
|
---|
12 | ; This file is part of VirtualBox base platform packages, as
|
---|
13 | ; available from https://www.virtualbox.org.
|
---|
14 | ;
|
---|
15 | ; This program is free software; you can redistribute it and/or
|
---|
16 | ; modify it under the terms of the GNU General Public License
|
---|
17 | ; as published by the Free Software Foundation, in version 3 of the
|
---|
18 | ; License.
|
---|
19 | ;
|
---|
20 | ; This program is distributed in the hope that it will be useful, but
|
---|
21 | ; WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
22 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
23 | ; General Public License for more details.
|
---|
24 | ;
|
---|
25 | ; You should have received a copy of the GNU General Public License
|
---|
26 | ; along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
27 | ;
|
---|
28 | ; SPDX-License-Identifier: GPL-3.0-only
|
---|
29 | ;
|
---|
30 |
|
---|
31 | %include "tstAsm.mac"
|
---|
32 |
|
---|
33 | BITS TEST_BITS
|
---|
34 |
|
---|
35 | lock mov ebp, esp
|
---|
36 | lock mov byte [0], 0
|
---|
37 | lock mov word [0], 0
|
---|
38 | lock mov dword [0], 0
|
---|
39 | lock mov word [0], 01234h
|
---|
40 | lock mov dword [0], 012348765h
|
---|
41 | lock mov byte [ebx], 0
|
---|
42 | lock mov [ebx], eax
|
---|
43 | lock mov [ebx], ax
|
---|
44 | lock mov [ebx], al
|
---|
45 | lock mov [ebx], edx
|
---|
46 | lock mov [ebx], dx
|
---|
47 | lock mov [ebx], dl
|
---|
48 | lock ret
|
---|
49 | %if TEST_BITS != 64
|
---|
50 | lock pop ebp
|
---|
51 | lock push esp
|
---|
52 | %else
|
---|
53 | lock pop rbp
|
---|
54 | lock push rsp
|
---|
55 | %endif
|
---|
56 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.