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.