From c8344184b2fc70a7a218a1b652fe6a2047e8e9a4 Mon Sep 17 00:00:00 2001 From: Aadi Desai <21363892+supleed2@users.noreply.github.com> Date: Thu, 17 Dec 2020 09:41:25 -0800 Subject: [PATCH] Fix sb, sh testcases Tried to write to instr mem + typo --- inputs/sb/sb-1.txt | 5 ++--- inputs/sh/sh-1.txt | 7 +++---- reference/reference.txt | 14 +++++--------- 3 files changed, 10 insertions(+), 16 deletions(-) diff --git a/inputs/sb/sb-1.txt b/inputs/sb/sb-1.txt index a2e8fd6..c42c078 100644 --- a/inputs/sb/sb-1.txt +++ b/inputs/sb/sb-1.txt @@ -1,7 +1,6 @@ 3C041234 34045678 -3C05BFC0 -3405001C +3405101C A0A40000 80A20000 -00000008 \ No newline at end of file +00000008 diff --git a/inputs/sh/sh-1.txt b/inputs/sh/sh-1.txt index 17b333d..2203c02 100644 --- a/inputs/sh/sh-1.txt +++ b/inputs/sh/sh-1.txt @@ -1,7 +1,6 @@ 3C041234 34045678 -3C05BFC0 -3405001C +3405101C A4A40000 -84A40000 -00000008 \ No newline at end of file +84A20000 +00000008 diff --git a/reference/reference.txt b/reference/reference.txt index 871f768..dd52c48 100644 --- a/reference/reference.txt +++ b/reference/reference.txt @@ -662,16 +662,14 @@ register_v0 = 65535 lui $4, 0x1234 ori $4, $0, 0x5678 -lui $5, 0xBFC0 -ori $5, $0, 0x001C +ori $5, $0, 0x101C sb $4, 0($5) lb $2, 0($5) jr $0 3C041234 34045678 -3C05BFC0 -3405001C +3405101C A0A40000 80A20000 00000008 @@ -682,18 +680,16 @@ register_v0 = 0x00000078 lui $4, 0x1234 ori $4, $0, 0x5678 -lui $5, 0xBFC0 -ori $5, $0, 0x001C +ori $5, $0, 0x101C sh $4, 0($5) lh $2, 0($5) jr $0 3C041234 34045678 -3C05BFC0 -3405001C +3405101C A4A40000 -84A40000 +84A20000 00000008 register_v0 = 0x00005678