add: sqrt, neg instructions, fix: pushing register with value 0

This commit is contained in:
2024-01-20 19:36:41 +01:00
parent 0a8421fa4c
commit 2ab0d16928
4 changed files with 44 additions and 19 deletions

View File

@@ -71,6 +71,8 @@ The syntax is very close to x86 Intel Assembly. Here is a list of the operands a
| **sub** a1, a2 | Substract a2 from a1 | no |
| **mul** a1, a2 | Multiplies a2 with a1 | no |
| **div** a1, a2 | Divides a2 from a1 | no |
| **sqrt** a1 | computes sqrt(a1) | no |
| **neg** a1 | a1 = -a1 | no |
| **and** a1, a2 | Performs a bitwise AND between a1 and a2. Stores the result in eax. | yes |
| **xor** a1, a2 | Performs a XOR opration between a1 and a2. Stores the result in eax.| yes |
| **mov** a1, a2 | Moves the value stored in a2 in a1 | no |