mpir/yasm/tests/nasm/reloc.asm
2010-06-25 16:28:41 +00:00

25 lines
270 B
NASM

[SECTION .data]
uhoh db 5
[GLOBAL blah]
blah dw 5
[SECTION .text]
[EXTERN hi]
[EXTERN hi]
[EXTERN bye]
mov eax, hi+2
mov eax, bye
mov eax, [hi]
mov eax, [bye+2]
mov eax, $$
mov eax, $
mov eax, $-$$
;mov eax, uhoh wrt $$
mov eax, hi+bye
mov eax, bye+$
mov eax, hi-$