November 09, 2018
49
7 Caveats
Table 7-1 Caveats
Compatibility Issue
NMOS 6502
W65C02
W65C02S
W65C816S
S (Stack)
Always Page 1, 8
bits
Always Page 1, 8
bits
Always page 1, 8
bits
Always page 1 8 bits
when(E=1), 16 bits
when E=0
X (X Index Reg)
Always Page 0
Always less than
256 ie 8 Bits
Always Page 0
Always less than
256 ie 8 Bits
Always Page 0
Always less than
256 ie 8 Bits
Indexed page zero
always in page 0
(E=1), Cross page
(E=0)
Y (Y Index Reg)
Always Page 0
Always less than
256 ie 8 Bits
Always Page 0
Always less than
256 ie 8 Bits
Always Page 0
Always less than
256 ie 8 Bits
Indexed page zero
always in page 0
(E=1), Cross page
(E=0)
A (Accumulator)
8 bits
8 bits
8 bits
8 bits (M=1), 16 bits
(M=0)
(Flag Reg)
N, V and Z flags
invalid
in
decimal
mode.
D=unknown
after
reset. D not modified
after interrupt
N,V and Z flags valid
in decimal mode. D=0
after reset/interrupt
N,V and Z flags valid
in decimal mode. D=0
after reset/interrupt
N,V and Z flags valid in
decimal mode. D=0 after
reset/interrupt
Timing
A.ABS,X,ASL,LSR,
ROL
with
no
Page
Crossing
B. Jump Indirect
Operand =XXFF
C. Branch Across
Page
D. Decimal Mode
7 cycles
5
cycles
and
invalid
page
crossing
4 cycles
No add. cycles
6 cycles
6 cycles
4 cycles
Add 1 cycle
6 cycles
6 cycles
4 cycles
Add 1 Cycle
7 cycles
5 cycles
4 cycles
No add. cycles
BRK Vector
FFFE,F BRK bit=0 on
stack if IRQ, NMI
FFFE,F BRK bit=0 on
stack if IRQ, NMI
FFFE,F BRK bit=0 on
stack if IRQ, NMI
00FFFE,F(E=1)
BRK
bit=0 on stack if IRQ-
NMIB, ABORTB
000FFE6,7 (E=0), X=X on
stack always
Interrupt or Break
Bank Address
Not available
Not available
Not available
PBR not pushed (E=1)
RTI, PBR, not pulled
(E-1) PRB pushed (E=0)
RTI, PBR pulled (E=0)
Memory Lock (ML)
Not available
MLB=0
during
Modify and Write
cycles
MLB=0
during
Modify and Write
cycles
MLB=0 during Read
Modify and Write
cycles
Indexed
Across
Page
Boundary
(d),y a,x a,y
Extra
read
of
invalid address
Extra read of last
instruction fetch
Extra read of last
instruction fetch
Extra read of invalid
address
RDY Pulled during
Write Cycle
Ignored
Processor stops
Processor stops
Processor Stops