Changes

Jump to: navigation, search

6502 Instructions - Introduction

68 bytes added, 00:58, 11 September 2023
Manipulating Flags
The 6502 provides instructions for setting and clearing various condition flags:
CLC ; clear carry flag (C) - required before using ADC(for single-byte and lowest-byte)
CLD ; clear decimal flag (D) - switches into binary math mode
CLI ; clear interrupt disable (I) - enables processor interrupts
CLV ; clear overflow flag (V)
SEC ; set carry flag (C) - required before using SBC(for single-byte and lowest-byte)
SED ; set decimal flag (D) - switches into decimal math mode
SEI ; set interrupt disable - turns off processor interrupts

Navigation menu