add some cheats

This commit is contained in:
Peter Ferrie 2022-05-03 16:07:13 -07:00
parent cd7ab28641
commit 328d9010b9
5 changed files with 63 additions and 7 deletions

View File

@ -36,7 +36,7 @@
0000,ANKH=Ankh
0000,APE.ESCAPE=Ape Escape
0001,AC=Apple Cider Spider
1000,APPLE.INVADER=Apple Invader
1001,APPLE.INVADER=Apple Invader
0001,APPLE.PANIC=Apple Panic
1001,AO=Apple-Oids
0001,AQUATRON=Aquatron
@ -76,10 +76,10 @@
0000,BC=BlockChain
0000,BOA=Boa
0001,BOLO=Bolo
0000,BH=Bongo's Bash
0001,BH=Bongo's Bash
0001,BORG=Borg
1001,BOULDER.DASH=Boulder Dash
1000,BOULDER.DASH.II=Boulder Dash II
1001,BOULDER.DASH.II=Boulder Dash II
0001,BK=Bouncing Kamungas
0001,BB=Brainteaser Boulevard
1011,BRUCE.LEE=Bruce Lee

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2021 by Frank M.
;(c) 2021-2022 by Frank M., qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/APPLE.INVADER",plain
@ -7,7 +7,11 @@
!source "src/prelaunch/common.a"
;+ENABLE_ACCEL ; text on screen
lda $7fe
pha
+ENABLE_ACCEL
pla
sta $7fe ; overwritten by GS acceleration
lda #$60
sta $6020
@ -37,6 +41,20 @@
sta $1DE8
sta $1E5A
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$A5
sta $1997 ; patch - don't increase lives
sta $1E33 ; patch - don't decrease lives
+
lda $7fe
pha
jsr DisableAccelerator
+READ_ROM_NO_WRITE
pla
sta $7fe ; overwritten by GS acceleration
jmp $5F00
!if * > $1C0 {

View File

@ -11,6 +11,7 @@
lda #$60
sta $835
jsr $800 ; decompress
sta $299
lda #1
sta $F0
lsr

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2021 by qkumba
;(c) 2021-2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/BH",plain
@ -11,7 +11,16 @@
lda #$60
sta $2061
jsr $2000 ; decompress
+DISABLE_ACCEL
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$A5
sta $84F5 ; patch - don't decrease lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $D566
!if * > $1C0 {

View File

@ -0,0 +1,28 @@
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/BOULDER.DASH.II",plain
*=$106
!source "src/prelaunch/common.a"
+READ_RAM2_NO_WRITE
jsr EnableAccelerator
lda #$60
sta $4044
jsr $4000 ; decompress
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$b5
sta $19D9 ; patch - don't decrease lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $800
!if * > $1C0 {
!error "code is too large, ends at ", *
}