Clarify opcodes and fix table

This commit is contained in:
Joscha 2019-11-07 07:19:39 +00:00
parent 6f6f32b5cf
commit a454890dac

View file

@ -47,6 +47,9 @@ Small opcodes can range from `0` to `E` and have an address or 20-bit
value as argument. Large opcodes can range from `F0` to `FF` and have, value as argument. Large opcodes can range from `F0` to `FF` and have,
if at all, a 16-bit value as argument. if at all, a 16-bit value as argument.
For large opcodes without an argument, the 16 value bits are
ignored. They don't have to be set to 0.
### Registers ### Registers
| Name | Size (bits) | Function | | Name | Size (bits) | Function |
@ -113,8 +116,8 @@ with zeroes, like so:
The registers and memory are stored as follows: The registers and memory are stored as follows:
| Word | Content | | Word | Content |
|---------------+-------------| |--------------:|-------------|
| 0 | `IR` | | 0 | `IR` |
| 1 | `ACC` | | 1 | `ACC` |
| 2 | `RA` | | 2 | `RA` |