Skip to content
Jack edited this page Apr 11, 2017 · 3 revisions

ISA


Instruction Format

+--------+--------+--------+--------+
|OOOOOOOO|DDDDDDDD|SSSSSSSS|VVVVVVVV|
+--------+--------+--------+--------+
|-8 bits-|-8 bits-|-8 bits-|-8 bits-|
|--------------32 bits--------------|

O - opcode

D - destination

S - source

V - value

Instruction Listing

If in doubt, check documentation or (even better) the code.

  1. NOP
  2. MOV
  3. LDL
  4. ADD
  5. SUB
  6. MUL
  7. DIV
  8. MOD
  9. JMP
  10. JPZ
  11. JPC
  12. JPV
  13. JPE
  14. SND
  15. RCV
  16. RED
  17. WRT
  18. PSH
  19. POP
  20. LOR
  21. AND
  22. XOR
  23. NOT
  24. SWP

Instruction Descriptions

NOP - No-Op

Performs a no-op. Guaranteed to consume one clock cycle.

MOV - Move

Moves value of one register to another.

E.g. mov r0, r1 moves contents of r1 to r0

LDL - Load Literal

Loads a literal value into the specified register.

e.g. after ldl r0, 12 r0 will contain the value 12.

Clone this wiki locally