R type, Alu and Logic Flashcards
1
Q
ADD, ADDI, ADDUI, do what?
A
add numbers signed, unsigned, and immediate.
ADD R3, R2, R1
R1 + R2 to R3, signed
2
Q
SUB, SUBI, SUBU, SUBUI, do what?
A
subtract signed, unsigned, immediate,
SUBI R3, R2, #42
R2 - 42 to R3 signed
3
Q
MULT, MULTU, DIV, DIVI, do what?
A
multiply signed and unsigned floating point numbers
MULT F3, F2, F1
Multiply F2 and F1 to F3
4
Q
AND, ANDI do what?
A
Logical and also with immediate
ANDI R3, R2, #16
bit 4 from R2 to R3