Status Register
The 8-bit status register contains these bits:
- I: interrupt enable/disable flag
- T: transfer bit for BLD and BST instructions
- H: half carry - useful for decimal arithmetic
- S: signed tests
- V: two's complement overflow
- N: set for if result < 0
- Z: set for if result == 0
- C: useful for multi-byte operations
This is useful when implementing control flow with branch instructions.
Index