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

Negative Flag: Difference between revisions

From SnesLab
Jump to: navigation, search
(LSR always clears)
(added which instructions affect negative flag)
Line 1: Line 1:
The '''Negative Flag''' exists on the [[65c816]].
The '''Negative Flag''' exists on the [[65c816]].


[[LSR]] always clears the negative flag.
These instructions affect the negative flag (this bulleted list being 37 long):
 
* [[ADC]]
* [[AND]]
* [[ASL]]
* [[BIT]]
* [[CMP]]
* [[CPX]]
* [[CPY]]
* [[DEC]]
* [[DEX]]
* [[DEY]]
* [[EOR]]
* [[INC]]
* [[INX]]
* [[INY]]
* [[LDA]]
* [[LDX]]
* [[LDY]]
* [[ORA]]
* [[PLA]]
* [[PLB]]
* [[PLD]]
* [[PLX]]
* [[PLY]]
* [[ROL]]
* [[ROR]]
* [[SBC]]
* [[TAX]]
* [[TAY]]
* [[TCD]]
* [[TDC]]
* [[TSC]]
* [[TSX]]
* [[TXA]]
* [[TXY]]
* [[TYA]]
* [[TYX]]
* [[XBA]]
 
Also, [[LSR]] always clears the negative flag.


=== Reference ===
=== Reference ===

Revision as of 08:33, 7 December 2023

The Negative Flag exists on the 65c816.

These instructions affect the negative flag (this bulleted list being 37 long):

Also, LSR always clears the negative flag.

Reference