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

Zero Flag: Difference between revisions

From SnesLab
Jump to: navigation, search
(mention BEQ/BNE)
(→‎Reference: hid archive URL)
Line 53: Line 53:


=== Reference ===
=== Reference ===
* [[Labiak]], page 108 https://archive.org/details/Programming_the_65816/page/n118
* [[Labiak]], [https://archive.org/details/Programming_the_65816/page/n118 page 108]


[[Category:ASM]]
[[Category:ASM]]
[[Category:Flags]]
[[Category:Flags]]
[[Category:Inherited from 6502]]
[[Category:Inherited from 6502]]

Revision as of 00:50, 6 August 2024

The Zero Flag (Z) exists on the 65c816 as bit 1 of the status register. Although there are no dedicated SEZ or CLZ instructions to set or clear it, it can be directly set with SEP and cleared with REP. It is also affected by these 41 instructions:

The BEQ and BNE instructions examine the zero flag to decide whether or not to branch.

The SPC700 and Super FX chips also have a zero flag.

See Also

Reference