Mnemonic OPCODE 3 bit A 3 bit B 3 bit C 4 bit D Description
ADD 0 0 0 Output Input A Input B Unused Add contents of Input A and Input B, saving to Output
NAND 0 0 1 Output Input A Input B Unused NAND contents of Input A and Input B, saving to Output
ADDi 0 1 0 Output Input 7 bit signed IMM Add contents of Input to IMM, saving to Output
LUI 0 1 1 Saved to 10 bit IMM Load IMM to bottom 10 bits of Saved to, setting top to 0
SW 1 0 0 Unused Input 6 bit mem address, ignores top bit of C Save value of register at Input to memory
LW 1 0 1 Output 6 bit memory address Unused Load memory from address, saving to Output
BEQ 1 1 0 Top bits of branch loc Input A Input B Bottom bits of branch loc Branch to branch loc if contents of A and B are =
IO 1 1 1 Saved to Input A Input B Special function code Other important functions (RNG, screen, etc.)
...ohgod
Those things that come from spreadsheets... should stay in spreadsheets.
ADD 0 0 0 Output Input A Input B Unused Add contents of Input A and Input B, saving to Output
NAND 0 0 1 Output Input A Input B Unused NAND contents of Input A and Input B, saving to Output
ADDi 0 1 0 Output Input 7 bit signed IMM Add contents of Input to IMM, saving to Output
LUI 0 1 1 Saved to 10 bit IMM Load IMM to bottom 10 bits of Saved to, setting top to 0
SW 1 0 0 Unused Input 6 bit mem address, ignores top bit of C Save value of register at Input to memory
LW 1 0 1 Output 6 bit memory address Unused Load memory from address, saving to Output
BEQ 1 1 0 Top bits of branch loc Input A Input B Bottom bits of branch loc Branch to branch loc if contents of A and B are =
IO 1 1 1 Saved to Input A Input B Special function code Other important functions (RNG, screen, etc.)
...ohgod
Those things that come from spreadsheets... should stay in spreadsheets.