Add a modulo instruction.

This commit is contained in:
Max Marrone
2020-01-25 21:06:43 -05:00
committed by GitHub
parent b7aa2d7ce7
commit 976b0689ba

3
vm.md
View File

@@ -54,6 +54,9 @@ Arithmetic instructions store their result in the last register specified.
* Div
* **Params**: REG1, REG2
* `REG2 = REG1 / REG2`
* Mod
* **Params**: REG1, REG2
* `REG2 = REG1 % REG2` (exact semantics TBD)
* Neg
* **Params**: REG1
* `REG1 = REG1 * -1`