From a5f1df04899780a25540ded716d8f22d9df530fb Mon Sep 17 00:00:00 2001 From: Hayden Kroepfl Date: Sat, 20 Jan 2018 12:36:54 -0700 Subject: [PATCH] Updated Instruction Encoding (markdown) --- Instruction-Encoding.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Instruction-Encoding.md b/Instruction-Encoding.md index 6c9decf..a2317a8 100644 --- a/Instruction-Encoding.md +++ b/Instruction-Encoding.md @@ -16,10 +16,10 @@ Selectors are 5-bit values that determine the addressing mode and registers invo | Selector Type | Bit-pattern | Description | | --- | --- | --- | -| REGISTER_16 | `00xxx` | Value in register `xxx` | +| REGISTER_16 | `00000`-`01000` | Value in register (`0001` - `1000`) | | MEMORY_IMM16 | `11110` | Address stored at operand word | -| MEMORY_REG16 |`01xxx` | Address stored in register `xxx` | -| MEMORY_REG_DISP16 |`10xxx` | Address stored in register `xxx` plus offset in operand word | +| MEMORY_REG16 |`01001` - `10000` | Address stored in register (`0001` - `1000`) | +| MEMORY_REG_DISP16 |`10001` - `11000` | Address stored in register (`0001` - `1000`) plus offset in operand word | | IMMEDIATE16 | `11111` | Immediate value at operand word | ### Register Indexes @@ -35,7 +35,7 @@ Selectors are 5-bit values that determine the addressing mode and registers invo | BP | | | ## Supplemental Words -If either the destination or source require a 16-bit immediate value as part of their addressing mode, then one or two additional word will be suffixed to the basic instruction word. If both a source and destination supplimental word are required, then the source word will come first in order. +If either the destination or source require a 16-bit immediate value as part of their addressing mode, then one or two additional word will be suffixed to the basic instruction word. If both a source and destination supplemental word are required, then the source word will come first in order. | Word 0 | Word 1 | Word 2 | | --- | --- | --- |