VirtualBox

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

Last change on this file since 94125 was 93115, checked in by vboxsync, 3 years ago

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 1.2 KB
Line 
1; $Id: tstAsmLock-3.asm 93115 2022-01-01 11:31:46Z 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 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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette