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
|
.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
|
||||||
|
|
Loading…
Add table
Reference in a new issue