Contents > General-purpose Computer > Assembly Language
The following table lists the user-accessible registers, those available to assembly language instructions.
| Register | Name | Bits | Description |
|---|---|---|---|
| A | Accumulator | 8 | Input and lone output of all arithmetic and logic instructions. |
| B | Data Register | 8 | Input of some arithmetic and logic instructions. |
| MN | Memory Register | 16 | Source address of load instructions and the destination address of store instructions. The 8-bit M and N registers contain its high and low bytes, respectively. |
| P | Program Counter | 16 | Address of the instruction to execute next. |
| R | Return Register | 16 | Address of the instruction to return to at the end of a subroutine. |
| n | Negative Flag | 1 | Indicates an arithmetic, logic, or load instruction produced a negatively signed value. |
| z | Zero Flag | 1 | Indicates an arithmetic, logic, or load instruction produced zero. |
Note: There is no carry flag, nor an overflow flag.
© 2023 meatfighter.com |