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
(bit 7) |
(→Reference: de n'd page #) |
||
Line 44: | Line 44: | ||
=== Reference === | === Reference === | ||
* Labiak, Willam. Page 109: https://archive.org/details/Programming_the_65816/page/ | * Labiak, Willam. Page 109: https://archive.org/details/Programming_the_65816/page/109 | ||
[[Category:ASM]] | [[Category:ASM]] | ||
[[Category:Flags]] | [[Category:Flags]] | ||
[[Category:Inherited from 6502]] | [[Category:Inherited from 6502]] |
Revision as of 07:35, 14 July 2024
The Negative Flag (N) exists on the 65c816. It is bit 7 of the status register.
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
- Labiak, Willam. Page 109: https://archive.org/details/Programming_the_65816/page/109