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
Jump to: navigation, search
(added break flag)
(added bit numberings)
Line 1: Line 1:
The '''Program Status Word''' is an 8-bit register on the [[SPC700]] that stores the value of status flags.  They are typically listed in this order: NVPBHIZC.  More verbosely:
The '''Program Status Word''' is an 8-bit register on the [[SPC700]] that stores the value of status flags.  They are typically listed in this order: NVPBHIZC.  More verbosely:


* Negative Flag
* Negative Flag - bit 7
* overflow Flag
* overflow Flag - bit 6
* [[direct page flag]]
* [[direct page flag]] - bit 5
* [[Break Flag]]
* [[Break Flag]] - bit 4
* [[Half-carry flag]]
* [[Half-carry flag]] - bit 3
* [[Interrupt Enable Flag]]
* [[Interrupt Enable Flag]] - bit 2
* Zero Flag
* Zero Flag - bit 1
* Carry flag
* Carry flag - bit 0


[[Category:ASM]]
[[Category:ASM]]
[[Category:SPC700]]
[[Category:SPC700]]
[[Category:Flags]]
[[Category:Flags]]

Revision as of 22:08, 14 July 2023

The Program Status Word is an 8-bit register on the SPC700 that stores the value of status flags. They are typically listed in this order: NVPBHIZC. More verbosely: