We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
Program Status Word: Difference between revisions
From SnesLab
(see also Status reg) |
(linkify) |
||
Line 6: | Line 6: | ||
! Flag Name !! Bit Position | ! Flag Name !! Bit Position | ||
|+ | |+ | ||
| Negative Flag || bit 7 | | [[Negative Flag]] || bit 7 | ||
|+ | |+ | ||
| | | [[Overflow Flag]] || bit 6 | ||
|+ | |+ | ||
| [[ | | [[Direct Page Flag]] || bit 5 | ||
|+ | |+ | ||
| [[Break Flag]] || bit 4 | | [[Break Flag]] || bit 4 | ||
Line 18: | Line 18: | ||
| [[Interrupt Enable Flag]] || bit 2 | | [[Interrupt Enable Flag]] || bit 2 | ||
|+ | |+ | ||
| Zero Flag || bit 1 | | [[Zero Flag]] || bit 1 | ||
|+ | |+ | ||
| Carry | | [[Carry Flag]] || bit 0 | ||
|} | |} | ||
Revision as of 09:01, 27 November 2023
The Program Status Word is an 8-bit register on the SPC700 that stores the values of status flags. They are typically listed in this order: NVPBHIZC. More verbosely:
Flag Name | Bit Position |
---|---|
Negative Flag | bit 7 |
Overflow Flag | bit 6 |
Direct Page Flag | bit 5 |
Break Flag | bit 4 |
Half-carry flag | bit 3 |
Interrupt Enable Flag | bit 2 |
Zero Flag | bit 1 |
Carry Flag | bit 0 |
Both the PUSH and POP commands can operate on the PSW.