From 19549734aeadab4b1a4303a2802a11528e539064 Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Tue, 12 Jan 2021 07:29:26 -0800 Subject: [PATCH] cheat for Star Blazer --- res/GAMES.CONF | 2 +- src/prelaunch/star.blazer.a | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 src/prelaunch/star.blazer.a diff --git a/res/GAMES.CONF b/res/GAMES.CONF index 130f9bed7..7340ecd63 100755 --- a/res/GAMES.CONF +++ b/res/GAMES.CONF @@ -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 diff --git a/src/prelaunch/star.blazer.a b/src/prelaunch/star.blazer.a new file mode 100644 index 000000000..b976d04a1 --- /dev/null +++ b/src/prelaunch/star.blazer.a @@ -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 ", * +}