Make the program wait for space key instead of joystick to start

This commit is contained in:
John Lorentzson 2025-07-30 16:37:20 +02:00
parent 69d9f49b5c
commit adb0e70f5e

View file

@ -13,12 +13,23 @@ mainsetup:
.endrep
.endif
.ifndef EMULATOR_PREVIEW
@waitstart: ;; Wait until joystick 2 has been pulled down to start the program
dec $d020
lda $dc00
and #$02
bne @waitstart
lda #%11111111
sta $dc02
lda #%00000000
sta $dc03
lda #%01111111
sta $dc00
lda $dc01
eor #$ff
beq @waitstart
lda #%00000000
sta $dc02
jsr setup_loader
jmp endsetup
@ -34,7 +45,6 @@ mainsetup:
jsr maybe_download_userprog
beq @trying
.endif
endsetup:
DOWNLOAD_TIMER = $FFFF