summaryrefslogtreecommitdiff
path: root/test/test67.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-22 21:50:03 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-22 21:50:03 -0700
commit20dec371dcb7024960fb3d3184416e85918d3eb3 (patch)
tree551f078f3b12b63e1d774e58c646cc2e2ac7e323 /test/test67.asm
parentc5b9ce0a843f8541138e1e72c9ca473faee610ee (diff)
downloadnasm-20dec371dcb7024960fb3d3184416e85918d3eb3.tar.gz
nasm-20dec371dcb7024960fb3d3184416e85918d3eb3.tar.bz2
nasm-20dec371dcb7024960fb3d3184416e85918d3eb3.zip
Simple test for 0x67 prefixes
Diffstat (limited to 'test/test67.asm')
-rw-r--r--test/test67.asm35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/test67.asm b/test/test67.asm
new file mode 100644
index 0000000..5917a1b
--- /dev/null
+++ b/test/test67.asm
@@ -0,0 +1,35 @@
+ bits 16
+
+ mov ax,[bx]
+ mov ax,[foo]
+ mov ax,[word foo]
+ mov ax,[dword foo]
+ mov ax,[ebx]
+ rep movsb
+ a16 rep movsb
+ a32 rep movsb
+ a32 mov ax,bx
+
+ bits 32
+
+ mov ax,[bx]
+ mov ax,[foo]
+ mov ax,[word foo]
+ mov ax,[dword foo]
+ mov ax,[ebx]
+ rep movsb
+ a16 rep movsb
+ a32 rep movsb
+
+ bits 64
+
+ mov ax,[rbx]
+ mov ax,[foo]
+ mov ax,[qword foo]
+ mov ax,[dword foo]
+ mov ax,[ebx]
+ rep movsb
+ a32 rep movsb
+ a64 rep movsb
+
+foo: