We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

Processor Status Register: Difference between revisions

From SnesLab
Jump to: navigation, search
(→‎References: de n'd page number)
(added list of status flags)
Line 24: Line 24:


The only transfer instructions that do not modify these flags are [[TCS]] and [[TXS]].
The only transfer instructions that do not modify these flags are [[TCS]] and [[TXS]].
These instructions do not modify any status flags:
* [[BCC]]
* [[BCS]]
* [[BEQ]]
* [[BMI]]
* [[BNE]]
* [[BPL]]
* [[BRA]]
* [[BRL]]
* [[BVC]]
* [[BVS]]
* [[JMP]]
* [[JSL]]
* [[JSR]]
* [[MVN]]
* [[MVP]]
* [[NOP]]
* [[PEA]]
* [[PEI]]
* [[PER]]
* [[PHA]]
* [[PHB]]
* [[PHD]]
* [[PHK]]
* [[PHP]]
* [[PHX]]
* [[PHY]]
* [[RTL]]
* [[RTS]]
* [[STA]]
* [[STP]]
* [[STX]]
* [[STY]]
* [[STZ]]
* [[TCS]]
* [[TXS]]
* [[WAI]]
* [[WDM]]


=== See Also ===
=== See Also ===

Revision as of 04:26, 23 July 2024

The Processor Status Register (P) is on the 65c816 and contains several flags:

It can be pulled from the stack via PLP and RTI.

There are nine instructions that directly modify these flags, including:[3]

The only transfer instructions that do not modify these flags are TCS and TXS.

These instructions do not modify any status flags:

See Also

References

  1. Table 18.2 Eyes & Lichty, page 422: https://archive.org/details/0893037893ProgrammingThe65816/page/422
  2. Figure 17.3, Lbid, page 377: https://archive.org/details/0893037893ProgrammingThe65816/page/377
  3. page 262, https://archive.org/details/0893037893ProgrammingThe65816/page/262