From 183d2d138d06ad6427f391360979513107b11d0c Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 27 Jul 2024 20:13:14 -0400 Subject: Add extra operand for arithmetic instructions Signed-off-by: Ian Moffett --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 69e013c..7ba95cf 100644 --- a/README.md +++ b/README.md @@ -51,14 +51,14 @@ and x1, #1 Arithmetic operations can write to all registers except `v0`-`v7`, `x0` and `pc`. Can read from all registers except `v0`-`v7`. -| Mnemonic | Effect | -| ---------------------------- | --------------------- | -| `add` dst: r/m, val: r/m/imm | `dst` = `dst` + `val` | -| `sub` dst: r/m, val: r/m/imm | `dst` = `dst` - `val` | -| `mul` dst: r/m, val: r/m/imm | `dst` = `dst` * `val` | -| `div` dst: r/m, val: r/m/imm | `dst` = `dst` / `val` | -| `inc` dst: r/m | `dst` = `dst` + `1` | -| `dec` dst: r/m | `dst` = `dst` - `1` | +| Mnemonic | Effect | +| ------------------------------------ | --------------------- | +| `add` dst: r, reg: r, val: r/imm | `dst` = `dst` + `val` | +| `sub` dst: r, reg: r, val: r/imm | `dst` = `dst` - `val` | +| `mul` dst: r, reg: r, val: r/imm | `dst` = `dst` * `val` | +| `div` dst: r, reg: r, val: r/imm | `dst` = `dst` / `val` | +| `inc` dst: r | `dst` = `dst` + `1` | +| `dec` dst: r | `dst` = `dst` - `1` | #### Example ``` -- cgit v1.2.3