| Instruction |
Type |
Description |
| and |
R |
Perform a logical and on the numbers in two registers and place the result in a third register. |
| andi |
M2 |
Perform a logical and on the number in a registers and an immediate value and place the result in the original register. |
| or |
R |
Perform a logical or on the numbers in two registers and place the result in a third register. |
| ori |
M2 |
Perform a logical or on the number in a registers and an immediate value and place the result in the original register. |
| xor |
R |
Perform a logical xor on the numbers in two registers and place the result in a third register. |
| nand |
R |
Perform a logical nand on the numbers in two registers and place the result in a third register. |
| nor |
R |
Perform a logical nor on the numbers in two registers and place the result in a third register. |
| xnor |
R |
Perform a logical xnor on the numbers in two registers and place the result in a third register. |
| slt |
R |
If the rs register is less than the rt register, store the value 1 in register rd; otherwise, store the value 0 in register rd. |
| Instruction |
Type |
Description |
| lw |
I |
Load the 16-bit word from the memory address found by summing the base address register and the offset constant, and place the value in the destination register. |
| sw |
I |
Store the value in the source register to the memory address found by summing the base address register and the offset constant. |
| copy |
R |
Copy the value from one register to another. |
| lui |
M |
Load the constant into the upper half-word (8 bits) of the register. |
| mtm |
I |
Copy a value from the source memory address to the destination memory address. |
| swap |
R |
Switch the values of 2 registers. |
| swra |
I |
Store the value from the RA register into memory. Similar to sw. |
| lwra |
I |
Load a value from memory into the RA register. Similar to lw. |