From 844d3a060f2af124735a45cdd31fec6a7671d3ab Mon Sep 17 00:00:00 2001 From: Leo dev Date: Wed, 29 Oct 2025 18:57:16 +0100 Subject: [PATCH] Opcodes --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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 |