aboutsummaryrefslogtreecommitdiffstats
path: root/test/masmdisp.asm
blob: 295d88d7c72f0e39c6e2867be9152a4d5406d6b4 (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
27
28
29
30
31
32
33
34
35
36
	%use masm

	global fproc, nproc

	bits 64

_TEXT	segment

fproc	proc far
	mov eax,dword ptr foo
	mov rdx,offset foo
	mov ecx,bar[rbx]
	lea rsi,foo
	lea rsi,dword ptr foo
	lea rsi,[foo]
	lea rsi,dword [foo]
	ret
fproc	endp

nproc	proc near
	mov eax,dword ptr foo
	mov rdx,offset foo
	mov ecx,bar[rbx]
	ret
nproc	endp

_TEXT	ends

_DATA	segment
nxx	dd 80
foo	dd 100
_DATA	ends

_BSS	segment nobits
bar	resd 100
_BSS	ends