From 5889ebf3206014753a3a4fa3bb777920f5926016 Mon Sep 17 00:00:00 2001 From: DBJ314 <28739710+DBJ314@users.noreply.github.com> Date: Mon, 26 Mar 2018 15:16:21 -0400 Subject: [PATCH] Updated Instruction Encoding (markdown) --- Instruction-Encoding.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Instruction-Encoding.md b/Instruction-Encoding.md index a2317a8..264f400 100644 --- a/Instruction-Encoding.md +++ b/Instruction-Encoding.md @@ -25,14 +25,14 @@ Selectors are 5-bit values that determine the addressing mode and registers invo ### Register Indexes | Register | Number | Bit-pattern | | --- | --- | --- | -| A | | | -| B | | | -| C | | | -| D | | | -| X | | | -| Y | | | -| SP | | | -| BP | | | +| A |1 |0001 | +| B |2|0010 | +| C |3 |0011 | +| D |4 |0100 | +| X |5 |0101 | +| Y |6 |0110 | +| SP |7 |0111 | +| BP |8 |1000 | ## 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 supplemental word are required, then the source word will come first in order.