aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mov_addressing_source.s
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mov_addressing_source.s')
-rw-r--r--tests/mov_addressing_source.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/mov_addressing_source.s b/tests/mov_addressing_source.s
new file mode 100644
index 0000000..21f0cb3
--- /dev/null
+++ b/tests/mov_addressing_source.s
@@ -0,0 +1,14 @@
+main:
+ mov #42, &0x40
+ mov #44, &0x42
+ mov #46, &0x44
+ mov #0x40, r4
+ mov r4, r5
+ mov 4(r5), r6
+ mov @r5+, r7
+ mov @r5, r8
+ mov var, r9
+ mov &0x44, r10
+ ret
+
+var: .byte 13