faster this, cheat at that

This commit is contained in:
Peter Ferrie 2019-10-13 15:19:48 -07:00
parent cf6fe8e965
commit 61303e3483
4 changed files with 82 additions and 0 deletions

27
src/prelaunch/bcs.quest.a Normal file
View File

@ -0,0 +1,27 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/BCS.QUEST",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #<cheat
sta $3e09
lda #>cheat
sta $3e0a
jmp $800 ; decompress
cheat
jsr $200
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$ad
sta $1eeb ; patch - don't increase lives
sta $7a4e ; patch - don't decrease lives
+
+DISABLE_ACCEL
rts

39
src/prelaunch/berzap.a Normal file
View File

@ -0,0 +1,39 @@
;license:MIT
;(c) 2019 by qkumba
!cpu 6502
!to "build/PRELAUNCH/BERZAP",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #<cheat1
sta $871
lda #>cheat1
sta $872
jmp $800 ; decompress
cheat1
lda #$4c
sta $b20b
lda #<cheat2
sta $b20c
lda #>cheat2
sta $b20d
jmp $b000
cheat2
+DISABLE_ACCEL
lda $b2cf
cmp #$2b
bne +
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$ad
sta $3d94 ; patch - don't decrease lives
sta $6573 ; patch - don't increase lives
sta $76ba ; patch - don't increase lives
+
jmp ($b2ce)

View File

@ -7,9 +7,17 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $3ec9
sta $3f03
jsr $3e97
+DISABLE_ACCEL
lda #$b1
sta $646b
jsr $6400
+ENABLE_ACCEL
jsr $811
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
@ -19,4 +27,5 @@
sta $94d1
sta $9768
+
+DISABLE_ACCEL
jmp $a300

View File

@ -7,9 +7,15 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $82f
sta $85e
jsr $800 ; decompress and show title/options screens
+DISABLE_ACCEL
jsr $7000
+ENABLE_ACCEL
jsr $832
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
@ -17,4 +23,5 @@
sta $2bc9
sta $2b6b
+
+DISABLE_ACCEL
jmp $3e00