Fix sb, sh testcases

Tried to write to instr mem + typo
This commit is contained in:
Aadi Desai 2020-12-17 09:41:25 -08:00
parent ad394c7d7d
commit c8344184b2
3 changed files with 10 additions and 16 deletions

View file

@ -1,7 +1,6 @@
3C041234 3C041234
34045678 34045678
3C05BFC0 3405101C
3405001C
A0A40000 A0A40000
80A20000 80A20000
00000008 00000008

View file

@ -1,7 +1,6 @@
3C041234 3C041234
34045678 34045678
3C05BFC0 3405101C
3405001C
A4A40000 A4A40000
84A40000 84A20000
00000008 00000008

View file

@ -662,16 +662,14 @@ register_v0 = 65535
lui $4, 0x1234 lui $4, 0x1234
ori $4, $0, 0x5678 ori $4, $0, 0x5678
lui $5, 0xBFC0 ori $5, $0, 0x101C
ori $5, $0, 0x001C
sb $4, 0($5) sb $4, 0($5)
lb $2, 0($5) lb $2, 0($5)
jr $0 jr $0
3C041234 3C041234
34045678 34045678
3C05BFC0 3405101C
3405001C
A0A40000 A0A40000
80A20000 80A20000
00000008 00000008
@ -682,18 +680,16 @@ register_v0 = 0x00000078
lui $4, 0x1234 lui $4, 0x1234
ori $4, $0, 0x5678 ori $4, $0, 0x5678
lui $5, 0xBFC0 ori $5, $0, 0x101C
ori $5, $0, 0x001C
sh $4, 0($5) sh $4, 0($5)
lh $2, 0($5) lh $2, 0($5)
jr $0 jr $0
3C041234 3C041234
34045678 34045678
3C05BFC0 3405101C
3405001C
A4A40000 A4A40000
84A40000 84A20000
00000008 00000008
register_v0 = 0x00005678 register_v0 = 0x00005678