mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-20 11:06:46 +00:00
Updated Instruction Encoding (markdown)
parent
6608ea6263
commit
5889ebf320
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user