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

From SnesLab
Revision as of 07:54, 20 November 2023 by Jeffythedragonslayer (talk | contribs) (see also Status reg)
Jump to: navigation, search

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.

See Also