Re: My 65C02 can't jump to subroutines and I don't get why
Posted: Wed Dec 10, 2025 2:48 pm
jgharston wrote:
Once you've got the faulty joint working, this:
should be:
Code: Select all
init_crtc:
lda #0
sta CRTC_ADDR_REG
lda #63
sta CRTC_DATA_REG
lda #1
sta CRTC_ADDR_REG
blah blah blahshould be:
Code: Select all
LDX #0
loop LDA inittable,X
STX CRTC_ADDR
STA CRTC_DATA
INX
CPX #max
BNE loop
...
.inittable defb foo,foo,foo,foo,foo,etc.