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