add multiplication, division, and &&

This commit is contained in:
William Bell
2025-09-03 05:21:41 +01:00
parent df040adf45
commit 57728af0b6
10 changed files with 286 additions and 31 deletions

View File

@@ -82,13 +82,12 @@ jumps when a the value in the given register is false.
1. the register to read. (*)
1. the index to jump to.
## OP_JUMP_IF_FALSE
## OP_JUMP
jumps unconditionally to an index.
1. the index to jump to.
## OP_NEW_SCOPE
creates a new stack
@@ -156,6 +155,30 @@ copies the value from one register to another
performs an addition between register A and register B, storing the result in register C
1. the register A (*)
2. the register B (*)
2. the register C (*)
## OP_SUBTRACTION
performs an subtraction between register A and register B, storing the result in register C
1. the register A (*)
2. the register B (*)
2. the register C (*)
## OP_MULTIPLICATION
performs an multiplication between register A and register B, storing the result in register C
1. the register A (*)
2. the register B (*)
2. the register C (*)
## OP_DIVISION
performs an division between register A and register B, storing the result in register C
1. the register A (*)
2. the register B (*)
2. the register C (*)