mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
test: make absolute.asm buildable even when not in binary mode
absolute.asm is useful even for other backends, so explicitly test to see if ORG is possible for this format. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
parent
59242bd10a
commit
6bc18f1978
@ -1,5 +1,7 @@
|
||||
;Testname=bin; Arguments=-fbin -oabsolute.bin; Files=stdout stderr absolute.bin
|
||||
%ifmacro org
|
||||
org 7c00h
|
||||
%endif
|
||||
init_foo:
|
||||
jmp init_bar
|
||||
nop
|
||||
@ -15,7 +17,7 @@ init_foo:
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
|
||||
|
||||
init_bar:
|
||||
mov [b1],dl
|
||||
mov [b2],edx
|
||||
@ -33,8 +35,7 @@ init_bar:
|
||||
nop
|
||||
nop
|
||||
ret
|
||||
|
||||
|
||||
absolute init_bar+7
|
||||
b1: resb 1
|
||||
b2: resd 6
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user