mirror of
https://github.com/supleed2/ELEC50010-IAC-CW.git
synced 2024-11-14 11:35:49 +00:00
28 lines
366 B
Plaintext
28 lines
366 B
Plaintext
|
==SRLV Shift right logical ==
|
||
|
|
||
|
srl -2 // Will it be able to handle shifts greater than the highest 1 value
|
||
|
|
||
|
ori $4,$0,16
|
||
|
srl $2,$4,6
|
||
|
jr $0
|
||
|
|
||
|
ref = 0
|
||
|
|
||
|
34040010
|
||
|
00000008
|
||
|
00041182
|
||
|
|
||
|
|
||
|
srl - 3 // negative number - does it push in a 0? (not sign extend)
|
||
|
|
||
|
lui $4, 0xFFFF
|
||
|
ori $4, $4, 0x00FF
|
||
|
srl $2, $4, 4
|
||
|
jr $0
|
||
|
|
||
|
ref = 0FFFF00F (268431375)
|
||
|
|
||
|
3c04ffff
|
||
|
348400ff
|
||
|
00000008
|
||
|
00041102
|