summaryrefslogtreecommitdiff
path: root/test/test67.asm
diff options
context:
space:
mode:
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: