diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2024-04-13 22:46:53 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2024-04-13 22:46:53 +0300 |
| commit | 915846b9898f74308509346ba94db0dd2ba1de45 (patch) | |
| tree | f450a174bb33bef47114f2f07433464e4af27459 /test/e2e/std_mem/run_memcopy.atk16 | |
| parent | a36e5e001a4f17505c40b7f7a8f9c1f514f40de1 (diff) | |
Add memcopy, add test
Diffstat (limited to 'test/e2e/std_mem/run_memcopy.atk16')
| -rw-r--r-- | test/e2e/std_mem/run_memcopy.atk16 | 23 |
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 |
