aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin, Intel <h.peter.anvin@intel.com>2018-06-25 13:24:51 -0700
committerH. Peter Anvin, Intel <h.peter.anvin@intel.com>2018-06-25 13:24:51 -0700
commit6bc18f1978257dae185c5f64e2e85f06c806424a (patch)
tree29cb410aee3067e8eb3e6064909419018877c02a /test
parent59242bd10aa8dd3087c31b10a39f94ef0aa3986e (diff)
downloadnasm-6bc18f1978257dae185c5f64e2e85f06c806424a.tar.gz
nasm-6bc18f1978257dae185c5f64e2e85f06c806424a.tar.xz
nasm-6bc18f1978257dae185c5f64e2e85f06c806424a.zip
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>
Diffstat (limited to 'test')
-rw-r--r--test/absolute.asm7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/absolute.asm b/test/absolute.asm
index 31c8178c..969a85e9 100644
--- a/test/absolute.asm
+++ b/test/absolute.asm
@@ -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
-