/* * 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: addi. R0, R0, #0x11 negi. R1, R1, #0x02 rot R2, R0, #1 and. R3, R0, R1 and. R4, R0, R0 ori. R4, #0x99 /* * If your implementation is correct, your Register File * should hold: * * R0 - 0xfff1 * R1 - 0x0001 * R2 - 0xfff8 * R3 - 0x0001 * R4 - 0xfff9 */ /* * Halt the CPU. */ halt 0x1