From db0838c8f2455a72f6851980586a73dfe4e91bbe Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Thu, 27 Jul 2023 18:24:35 -0400 Subject: [PATCH] added memory test program --- memory_test.asm | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 memory_test.asm 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