Update reference.txt

This commit is contained in:
theexecutor13 2020-12-16 00:06:33 +08:00 committed by GitHub
parent 85efff275a
commit 6e600966db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -605,19 +605,43 @@ register_v0 = 7
==SB Store byte== ==SB Store byte==
ori $4, $0, 1029 lui $4, 0x1234
ori $5, $0, 1 ori $4, $0, 0x5678
sb $4, 1($5) lui $5, 0xBFC0
ori $5, $0, 0x001C
sb $4, 0($5)
lb $2, 0($5)
jr $0 jr $0
34040405 3C041234
34050001 34045678
a0a40001 3C05BFC0
3405001C
A0A40000
80A20000
00000008 00000008
register_v0 = 5 register_v0 = 0x00000078
SH Store half-word ==SH Store half-word==
lui $4, 0x1234
ori $4, $0, 0x5678
lui $5, 0xBFC0
ori $5, $0, 0x001C
sh $4, 0($5)
lh $2, 0($5)
jr $0
3C041234
34045678
3C05BFC0
3405001C
A4A40000
84A40000
00000008
register_v0 = 0x00005678
==SLL Shift left logical== ==SLL Shift left logical==
@ -645,7 +669,19 @@ jr $0
register_v0 = 16 register_v0 = 16
//SLT Set on less than (signed) ==SLT Set on less than (signed)==
ORI $4 $zero 0xFFFF
ORI $5 $zero 0x000B
SLT $2 $4 $5
jr $0
3404FFFF
3405000B
0085102A
00000008
register_v0 = 0
==SLTI Set on less than immediate (signed)== ==SLTI Set on less than immediate (signed)==