added memory test program

This commit is contained in:
2023-07-27 18:24:35 -04:00
parent 9ac98f9f70
commit db0838c8f2

12
memory_test.asm Normal file
View File

@@ -0,0 +1,12 @@
#include "definitions.asm"
; testing memory functionality
prog:
imm6 8
load r0, r3 ; aload copies the accumulator to "r6"
aload
imm6 42
load r0, [r3] ; after aload "r6" = r3 contains the address you want to write
.end:
.halt:
halt