/* * Tests the memory implementation of an ULNAv2-C datapath. * * Copyright(c) 2024 Jason Tang * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ main: /* * First initialize two registers. */ movi R0, #0x11 movi R1, #0x21 /* * Test that simple addition works. */ add. R2, R0, R1 /* * Test the two store instructions. */ stw R2, R0, R1 stwi R2, R2, #1 /* * Test the two load instructions. */ ldw r3, r0, r1 ldwi r4, r2, #1 /* * Halt the CPU. */ halt 0x2