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
(added flag abbreviations)
(added CLV)
 
(15 intermediate revisions by the same user not shown)
Line 9: Line 9:
* z
* z
* c
* c
It can be pulled from the [[stack]] via [[PLP]] and [[RTI]].
There are nine instructions that directly modify these flags, including:<sup>[3]</sup>
* [[REP]]
* [[SEP]]
* [[CLC]]
* [[SEC]]
* [[CLD]]
* [[SED]]
* [[CLI]]
* [[SEI]]
* [[CLV]]
=== See Also ===
* [[Program Status Word]]
* [[DSP1 Status Register]]
* [[PHP]]


=== Reference ===
=== Reference ===
* [[Eyes & Lichty]], page 422: https://archive.org/details/0893037893ProgrammingThe65816/page/n448
# Table 18.2 [[Eyes & Lichty]], page 422: https://archive.org/details/0893037893ProgrammingThe65816/page/n448
# Figure 17.3, Lbid, page 377: https://archive.org/details/0893037893ProgrammingThe65816/page/n403
# page 262, https://archive.org/details/0893037893ProgrammingThe65816/page/n288


[[Category:Registers]]
[[Category:Registers]]
[[Category:Flags]]
[[Category:Flags]]

Latest revision as of 09:25, 15 December 2023

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

  • n
  • v
  • m
  • x
  • d
  • i
  • z
  • c

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

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

See Also

Reference

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