From fa1c2a97da1dc6e728bb1bc7ed0031712849ae6a Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 23 Oct 2021 21:08:34 -0400 Subject: basic test framework; MOV and ADD tests --- tests/mov_addressing_source.s | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/mov_addressing_source.s (limited to 'tests/mov_addressing_source.s') 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 -- cgit v1.2.3