Document Title: [ (html file)]
Table of Contents:
The 65C02 has a 16 bit address space (64K) arranged in 256 pages each of which is 256 bytes long.
Page 0 ($0000-$00FF) has some special properties involving addressing modes and is very valuable memory.
Page 1 ($0100-$01FF) is the stack.
Bytes $FFFA-$FFFB are the NMIB interrupt vector. Bytes $FFFC-$FFFD are the reset vector. Bytes $FFFE-$FFFF are the IRQ/BRK vector.
The 65C02 has 3 registers, stack pointer, processor flags (P), and program counter. The registers are the Accumulator (A), X index, and Y index. Each is 8 bits wide. Most instructions leave results in the accumulator. The stack pointer is an 8 bit register that is used as an offset into the stack (page 1). It is auto incrementing and decrementing when used with the push and pull (pop) instructions. You can also directly access and modify it's value via the TSX and TXS instructions.
The P register contains the following one bit flags:
Notes: