Donkey Kong supports keyboard, auto-enable if no joystick

This commit is contained in:
Peter Ferrie 2020-05-13 20:11:06 -07:00
parent 76fd0bbb52
commit 0b30e10703
2 changed files with 10 additions and 3 deletions

View File

@ -82,7 +82,7 @@
0001,DIG.DUG
1001,DINO.EGGS
1001,DINO.SMURF
1001,DONKEY.KONG
0001,DONKEY.KONG
0000,DOUBLE.TROUBLE
1001,DRELBS
0001,DROL

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2019 by qkumba/Frank M.
;(c) 2019-2020 by qkumba/Frank M.
!cpu 6502
!to "build/PRELAUNCH/DONKEY.KONG",plain
@ -11,7 +11,14 @@
lda #$60
sta $3eab
jsr $3e36 ; decompress
+GET_MACHINE_STATUS
+READ_RAM2_NO_WRITE
lda MachineStatus
pha
and #HAS_JOYSTICK
bne +
inc $7CB7 ; force keyboard
+
pla
and #CHEATS_ENABLED
beq +
lda #$2c