Changes

Jump to: navigation, search

6502 Instructions - Introduction

No change in size, 16:13, 13 September 2022
no edit summary
=== Arithmetic and Bitwise Operations ===
 
{{Admon/tip|Watch the Carry Flag!|Failing to clear the carry flag before addition or to set the carry flag before subtraction is the cause of many bugs in 6502 programs. The carry flag also affects the rotate instructions. Be sure to set or clear this flag with the <code>SEC</code> or <code>CLC</code> instructions when needed!}}
'''For full details on all of the arithmetic and bitwise instructions, see the [[6502 Math]] page.'''
Note that in addition to these instructions, many other instructions (such as register loads) affect condition flags.
 
{{Admon/tip|Watch the Carry Flag!|Failing to clear the carry flag before addition or to set the carry flag before subtraction is the cause of many bugs in 6502 programs. The carry flag also affects the rotate instructions. Be sure to set or clear this flag with the <code>SEC</code> or <code>CLC</code> instructions when needed!}}
=== Program Flow ===

Navigation menu