cheat for Star Blazer

This commit is contained in:
Peter Ferrie 2021-01-12 07:29:26 -08:00
parent 3206d03e67
commit 19549734ae
2 changed files with 32 additions and 1 deletions

View File

@ -274,7 +274,7 @@
1000,SPINDIZZY
0000,SPY.HUNTER
0001,SPYS.DEMISE=Spy's Demise
0000,STAR.BLAZER
0001,STAR.BLAZER
1001,STAR.CRUISER
0000,STAR.THIEF
1000,STARBLASTER

View File

@ -0,0 +1,31 @@
;license:MIT
;(c) 2020 by qkumba
!cpu 6502
!to "build/PRELAUNCH/STAR.BLAZER",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $722A
sta $725D
jsr $4A58 ; decompress
+DISABLE_ACCEL
jsr $4400
+ENABLE_ACCEL
jsr $B4C6 ; decompress
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
dec $F5C ; patch - don't decrease lives
dec $F6B ; patch - don't increase lives
+
+DISABLE_ACCEL
jmp ($20)
!if * > $1C0 {
!error "code is too large, ends at ", *
}