Skip to content
GitLab
Explore
Sign in
Changes
Page history
Update instruction encoding
authored
Jun 22, 2015
by
Serena Willis
Hide whitespace changes
Inline
Side-by-side
Instruction-Encoding.md
View page @
0779519f
...
@@ -14,3 +14,39 @@ NOTE: Not all instructions will use every part of the above diagram. For example
...
@@ -14,3 +14,39 @@ NOTE: Not all instructions will use every part of the above diagram. For example
## Opcodes
## Opcodes
|Opcode (Decimal) |Instruction|
|-----------------|-----------|
| 001 | COPY |
| 002 | CPSZ |
| 003 | ADD |
| 004 | SUB |
| 005 | MUL |
| 006 | DIV |
| 007 | SHL |
| 008 | SHR |
| 009 | OR |
| 010 | NOT |
| 011 | AND |
| 012 | XOR |
| 013 | EQV |
| 014 | CMP |
| 015 | CMPSZ |
| 020 | BRANCH |
| 021 | BEQ |
| 022 | BNE |
| 023 | BZ |
| 025 | BLT |
| 026 | BGT |
| 027 | SCALL |
| 028 | LCALL |
| 029 | ICALL |
| 030 | SRET |
| 031 | LRET |
| 032 | IRET |
| 033 | PUSH |
| 034 | POP |
| 040 | IN |
| 041 | OUT |
| 254 | NOP |
| 255 | HLT |