Make the program wait for space key instead of joystick to start
This commit is contained in:
parent
69d9f49b5c
commit
adb0e70f5e
1 changed files with 15 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue