mirror of
https://github.com/supleed2/ELEC50010-IAC-CW.git
synced 2024-12-22 21:35:48 +00:00
uploading log.txt weirdness testcase
This commit is contained in:
parent
0bdbb63f49
commit
6c400f3567
1
inputs/addu/addu-2.ref.txt
Normal file
1
inputs/addu/addu-2.ref.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
0
|
4
inputs/addu/addu-2.txt
Normal file
4
inputs/addu/addu-2.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
3C041000
|
||||||
|
3C05F000
|
||||||
|
00000008
|
||||||
|
00851021
|
1
inputs/bgezal/bgezal-2.ref.txt
Normal file
1
inputs/bgezal/bgezal-2.ref.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
2
|
5
inputs/bgezal/bgezal-2.txt
Normal file
5
inputs/bgezal/bgezal-2.txt
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
3C04FFFF
|
||||||
|
04910004
|
||||||
|
03E00008
|
||||||
|
24420001
|
||||||
|
00000008
|
1
inputs/jr/jr-3.ref.txt
Normal file
1
inputs/jr/jr-3.ref.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
0
|
4
inputs/jr/jr-3.txt
Normal file
4
inputs/jr/jr-3.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
3C05BFC0
|
||||||
|
34A50008
|
||||||
|
00A00008
|
||||||
|
00000008
|
|
@ -30,6 +30,20 @@ ADDU $2,$4,$5
|
||||||
|
|
||||||
register_v0 = 8
|
register_v0 = 8
|
||||||
|
|
||||||
|
-Test not overflowing property
|
||||||
|
|
||||||
|
lui $4,$0,0x1000
|
||||||
|
lui $5,$0,0xF000
|
||||||
|
JR $0
|
||||||
|
ADDU $2,$4,$5
|
||||||
|
|
||||||
|
3C041000
|
||||||
|
3C05F000
|
||||||
|
00000008
|
||||||
|
00851021
|
||||||
|
|
||||||
|
register_v0 = 0
|
||||||
|
|
||||||
==AND Bitwise and==
|
==AND Bitwise and==
|
||||||
|
|
||||||
LUI $5,0xCCCC
|
LUI $5,0xCCCC
|
||||||
|
@ -126,6 +140,22 @@ JR $31
|
||||||
|
|
||||||
register_v0 = 2
|
register_v0 = 2
|
||||||
|
|
||||||
|
-Testing whether it would link if branch fails
|
||||||
|
|
||||||
|
lui $4,0xFFFF
|
||||||
|
BGEZAL $4,4
|
||||||
|
JR $31
|
||||||
|
ADDIU $2,$2,1
|
||||||
|
JR $0
|
||||||
|
|
||||||
|
3C04FFFF
|
||||||
|
04910004
|
||||||
|
03E00008
|
||||||
|
24420001
|
||||||
|
00000008
|
||||||
|
|
||||||
|
register_v0 = 2
|
||||||
|
|
||||||
==BGTZ Branch on greater than zero==
|
==BGTZ Branch on greater than zero==
|
||||||
|
|
||||||
ORI $4,$0,3
|
ORI $4,$0,3
|
||||||
|
@ -363,6 +393,20 @@ ORI $2,$0,5
|
||||||
|
|
||||||
register_v0 = 5
|
register_v0 = 5
|
||||||
|
|
||||||
|
-This broke testbench once due to log.txt weirdness
|
||||||
|
|
||||||
|
LUI $5,0xBFC0
|
||||||
|
ORI $5,$5,0x0008
|
||||||
|
JR $5
|
||||||
|
JR $0
|
||||||
|
|
||||||
|
3C05BFC0
|
||||||
|
34A50008
|
||||||
|
00A00008
|
||||||
|
00000008
|
||||||
|
|
||||||
|
register_v0 = 0
|
||||||
|
|
||||||
==LB Load byte==
|
==LB Load byte==
|
||||||
|
|
||||||
ORI $4,$0,0x1001
|
ORI $4,$0,0x1001
|
||||||
|
|
Loading…
Reference in a new issue