Hey, sorry it's been a while, I haven't given up on my project, thanks to all those who helped me in the past! I haven't had any spare time to do anything really. Anyway, now I've got a little bit of time, I'd like to continue with this
I made a little menu last night and it works fine except for one thing: the joypad is too responsive! I would like to make it so the little arrow that points out the selection only moves down once per-press then ignores any other presses until the button is released. I've seen code that did that before but I can't find it anywhere!
Here's my current joypad code from my NMI routine:
Thank you
I made a little menu last night and it works fine except for one thing: the joypad is too responsive! I would like to make it so the little arrow that points out the selection only moves down once per-press then ignores any other presses until the button is released. I've seen code that did that before but I can't find it anywhere!
Here's my current joypad code from my NMI routine:
Code:
.readJoypad:
lda #$01
sta $4016
lda #$00
sta $4016
.readA:
lda $4016
and #%00000001
beq .readA_done
lda $0200
adc #$08
clc
sta $0200
.readA_done:
lda #$01
sta $4016
lda #$00
sta $4016
.readA:
lda $4016
and #%00000001
beq .readA_done
lda $0200
adc #$08
clc
sta $0200
.readA_done:
Thank you