Opcode Symbol | Machine Code | Example |
---|---|---|
NOP | 0000 | No operation; do nothing. Stops the program. |
LDA | 0001 | LDA A -- Load A into the ACC |
STA | 0010 | STA C -- Store the ACC into C |
ADD | 0011 | ADD B -- Add B to the ACC |
SUB | 0100 | SUB B -- Subtract B from the ACC |
MUL | 0101 | MUL B -- Multiply the ACC by B |
DIV | 0110 | DIV B -- Divide the ACC by B |
PRN | 1000 | PRN C -- Print the value C |
INP | 1001 | INP D -- Input a value from the keyboard into D |
VAR | VAR A 10 -- Variable declaration |
|
|