diff --git a/README.md b/README.md index 36c01b6..fb801d7 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,17 @@ # forge + A flash emulator with my own stuff ## Opcodes -| OP | INST | Action | -|-----------|-----------|-----------| -| 0 | LBK | Goes to the next instruction | -| 1 | HLT | Stops further emulation of the program | +| OP | INST | Action | +| --- | ----------------- | -------------------------------------- | +| 0 | \n | Goes to the next instruction | +| 1 | HLT | Stops further emulation of the program | +| 2 | REG (r), (n) | Sets a registry to a number | +| 3 | ADD (r), (r), (r) | Adds | +| 4 | SUB (r), (r), (r) | Subtracts | +| 5 | MUL (r), (r), (r) | Multiplies | +| 6 | DIV (r), (r), (r) | Divides | +| 7 | LABEL (s) | Creates a label | +| 8 | JMP (s) | Jumps into a label |