summaryrefslogtreecommitdiff
path: root/test/vmread.asm
blob: 551c71a17f9bfb56136d8d117793a5c5c8b682c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
;Testname=test; Arguments=-fbin -ovmread.bin; Files=stdout stderr vmread.bin

	bits 32
	vmread dword [0], eax
	vmwrite eax, dword [0]
	vmread [0], eax
	vmwrite eax, [0]

	bits 64
	vmread qword [0], rax
	vmwrite rax, qword [0]
	vmread [0], rax
	vmwrite rax, [0]

%ifdef ERROR
	bits 32
	vmread qword [0], eax
	vmwrite eax, qword [0]

	bits 64
	vmread dword [0], eax
	vmwrite eax, dword [0]

	vmread qword [0], eax
	vmwrite eax, qword [0]
%endif