summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-02 06:23:29 +0000
committerH. Peter Anvin <hpa@zytor.com>2007-09-02 06:23:29 +0000
commit4768f5f6f272328522a792e572672cf229d91ea6 (patch)
treee3db262b782cadc456b4f45a933bf2a4b232bad0 /test
parente3e9e9fa0df139e49c57fed528b38ae28d028387 (diff)
downloadnasm-4768f5f6f272328522a792e572672cf229d91ea6.tar.gz
Simple 64-bit org test
Diffstat (limited to 'test')
-rw-r--r--test/org.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/org.asm b/test/org.asm
new file mode 100644
index 00000000..ae73ab62
--- /dev/null
+++ b/test/org.asm
@@ -0,0 +1,15 @@
+;
+; Simple test of a 64-bit org directive
+;
+ bits 64
+ org 0xffffffffffff0000
+
+hello: jmp there
+ nop
+ nop
+there:
+ add rax,[rsp+rbx]
+ inc eax
+
+ section .data
+there_ptr dq there