summaryrefslogtreecommitdiff
path: root/test/vmread.asm
blob: fa55926545bbdd3f8e47913f245d161e1b6e22b2 (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