From 915846b9898f74308509346ba94db0dd2ba1de45 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sat, 13 Apr 2024 22:46:53 +0300 Subject: Add memcopy, add test --- test/e2e/std_mem/run_memcopy.atk16 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/e2e/std_mem/run_memcopy.atk16 (limited to 'test/e2e/std_mem/run_memcopy.atk16') 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 -- cgit v1.3