summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-28 23:23:24 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-28 23:23:24 -0700
commit6745d722f447a7489832746c614024a5dd4cd5a7 (patch)
treef4b94f0186865323292b7ea5931d2efc648d9607
parentb0c546269408e0ea7df4a6b6d9b1dc7a294e7307 (diff)
downloadnasm-6745d722f447a7489832746c614024a5dd4cd5a7.tar.gz
nasm-6745d722f447a7489832746c614024a5dd4cd5a7.tar.bz2
nasm-6745d722f447a7489832746c614024a5dd4cd5a7.zip
Test of some addressing modes in 64-bit mode.
-rw-r--r--test/addr64x.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/addr64x.asm b/test/addr64x.asm
new file mode 100644
index 0000000..1fbec45
--- /dev/null
+++ b/test/addr64x.asm
@@ -0,0 +1,15 @@
+ bits 64
+ mov rdx,[rax]
+ mov eax,[byte rsp+0x01]
+ mov eax,[byte rsp-0x01]
+ mov eax,[byte rsp+0xFF]
+ mov eax,[byte rsp-0xFF]
+ mov eax,[rsp+0x08]
+ mov eax,[rsp-0x01]
+ mov eax,[rsp+0xFF]
+ mov eax,[rsp-0xFF]
+ mov rax,[rsp+56]
+ mov [rsi],dl
+ mov byte [rsi],'-'
+ mov [rsi],al
+ mov byte [rsi],' '