This commit is contained in:
2025-10-29 18:57:16 +01:00
parent 66e51b39cf
commit 844d3a060f
+10 -2
View File
@@ -1,9 +1,17 @@
# forge
A flash emulator with my own stuff
## Opcodes
| OP | INST | Action |
|-----------|-----------|-----------|
| 0 | LBK | Goes to the next instruction |
| --- | ----------------- | -------------------------------------- |
| 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 |