- #1
RET80
- 15
- 0
Homework Statement
I need to put in a byte in register $s1 that is 0b10101011
Homework Equations
add
addi
lb
sb
$zero (if needed)
The Attempt at a Solution
I attempted at putting in a byte in register $s1 as follows:
add $s1, $zero, 0b10101011
however it throws an error, I can't use 0x10101011 because isn't that hex? it would throw a huge number at me otherwise. So how in the world do I load up a binary number into register $s1 ?