diff --git a/memory_test.asm b/memory_test.asm new file mode 100644 index 0000000..fb1fe29 --- /dev/null +++ b/memory_test.asm @@ -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 \ No newline at end of file