From 976b0689bae5e963fa6bc663d74706265cf5523d Mon Sep 17 00:00:00 2001 From: Max Marrone Date: Sat, 25 Jan 2020 21:06:43 -0500 Subject: [PATCH] Add a modulo instruction. --- vm.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vm.md b/vm.md index 958f252..cefe248 100644 --- a/vm.md +++ b/vm.md @@ -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`