aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e/std_mem/run_memcopy.atk16
diff options
context:
space:
mode:
Diffstat (limited to 'test/e2e/std_mem/run_memcopy.atk16')
-rw-r--r--test/e2e/std_mem/run_memcopy.atk1623
1 files changed, 23 insertions, 0 deletions
diff --git a/test/e2e/std_mem/run_memcopy.atk16 b/test/e2e/std_mem/run_memcopy.atk16
new file mode 100644
index 0000000..66f3c1d
--- /dev/null
+++ b/test/e2e/std_mem/run_memcopy.atk16
@@ -0,0 +1,23 @@
+@include %bootstrap
+@include %std_mem
+
+@label mem_offset_from
+ 0x9000
+@label mem_offset_to
+ 0x9100
+
+@label main
+ ; set values 0x0000..0x0004 to 3
+ ldi mem_offset_from RA
+ ldr RA RA
+ ldi 5 RB
+ ldi 3 RC
+ calli memset
+ hlt
+
+ ldi mem_offset_to RB
+ ldr RB RB
+ ldi 5 RC
+ calli memcopy
+
+ hlt