ELEC50010-IAC-CW/reference/edgecases/srlvref.txt
2020-12-18 23:15:04 +00:00

32 lines
424 B
Plaintext

==SRLV Shift right logical variable==
srlv -2 // Will it be able to handle shifts greater than the highest 1 value
ori $4,$0,6
ori $5,$0,16
srlv $2,$5,$4
jr $0
ref = 0
34040006
34050010
00000008
00851006
srlv - 3 // negative number - does it push in a 0? (not sign extend)
lui $4, 0xFFFF
ori $4, $4, 0x00FF
ori $5, $0, 4
srlv $2, $4, $5
jr $0
ref = 0FFFF00F (268431375)
3c04ffff
348400ff
34050004
00000008
00A41006