Assembly Language Table

Opcode SymbolMachine CodeExample
NOP0000No operation; do nothing. Stops the program.
LDA0001LDA A -- Load A into the ACC
STA0010STA C -- Store the ACC into C
ADD0011ADD B -- Add B to the ACC
SUB0100SUB B -- Subtract B from the ACC
MUL0101MUL B -- Multiply the ACC by B
DIV0110DIV B -- Divide the ACC by B
PRN1000PRN C -- Print the value C
INP1001INP D -- Input a value from the keyboard into D
VAR VAR A 10 -- Variable declaration
mobile csp logo







INST DATA 
0000: 1000:
0001: 1001:
0010: 1010:
0011: 1011:
0100: 1100:
0101: 1101:
0110: 1110:
0111: 1111:



ICTR:  IREG:
ACC:


Instruction Set
  <x> is a 4-bit memory address
  0000        -- NOP (Do nothing)
  0001 <x> -- LOAD value at <x> to ACC
  0010 <x> -- STORE value in ACC at <x>
  0011 <x> -- ADD value at <x> to ACC
  0100 <x> -- SUB value at <x> from ACC
  0101 <x> -- MUL ACC by value at <x>
  0110 <x> -- DIV ACC by value at <x>
  1000 <x> -- PRINT <x> to Monitor
  1001 <x> -- INPUT keyboard to <x>

Help