diff --git a/reference/reference.txt b/reference/reference.txt index 7c06aa4..8afe438 100644 --- a/reference/reference.txt +++ b/reference/reference.txt @@ -605,19 +605,43 @@ register_v0 = 7 ==SB Store byte== -ori $4, $0, 1029 -ori $5, $0, 1 -sb $4, 1($5) +lui $4, 0x1234 +ori $4, $0, 0x5678 +lui $5, 0xBFC0 +ori $5, $0, 0x001C +sb $4, 0($5) +lb $2, 0($5) jr $0 -34040405 -34050001 -a0a40001 +3C041234 +34045678 +3C05BFC0 +3405001C +A0A40000 +80A20000 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== @@ -645,7 +669,19 @@ jr $0 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)==