add cheats S

This commit is contained in:
Peter Ferrie 2022-05-18 11:36:22 -07:00
parent 8e5df26b37
commit b478414d4c
67 changed files with 604 additions and 112 deletions

17
res/GAMEHELP/SHEILA Normal file
View File

@ -0,0 +1,17 @@
Rescue the princess
; A
move < > move shoot S D shoot
/ Z
Choose customised keyboard for full list
Space * * * change size (get item first)
ESC* * * * * * * * * * * * * * * * pause
Q* * * * * * * * * * * * * * * * * sound
T * * * * * * * * * * * * * time / score
[eof]

View File

@ -336,30 +336,30 @@
0001,SAMMY.LIGHTFOOT=Sammy Lightfoot
0001,SARACEN=Saracen
0007,SEA.DRAGON=Sea Dragon
0000,SEAFOX=Seafox
0003,SEAFOX=Seafox
0007,SERPENTINE=Serpentine
1000,SHAMUS=Shamus
0000,SHEILA=Sheila
0000,SHORT.CIRCUIT=Short Circuit
1000,SI=Shuttle Intercept
0000,SC=Situation Critical
1001,SHAMUS=Shamus
0006,SHEILA=Sheila
0001,SHORT.CIRCUIT=Short Circuit
1001,SI=Shuttle Intercept
0006,SC=Situation Critical
1000,SKYFOX=Skyfox
0000,SNACK.ATTACK=Snack Attack
0000,SNAKE.BYTE=Snake Byte
0001,SNACK.ATTACK=Snack Attack
0001,SNAKE.BYTE=Snake Byte
0001,SNEAKERS=Sneakers
0007,SNOGGLE=Snoggle
0110,SO=Soko-Ban
1000,SOLO.FLIGHT=Solo Flight
1000,SPACE.EGGS=Space Eggs
0000,SPACE.KADET=Space Kadet
0000,SPACE.QUARKS=Space Quarks
0001,SPACE.QUARKS=Space Quarks
0000,SPACE.RAIDERS=Space Raiders
1000,SPACE.RESCUE=Space Rescue
1004,SPACE.RESCUE=Space Rescue
0007,SPARE.CHANGE=Spare Change
0001,SPECTRE=Spectre
0100,SPELLWIELDER=Spellwielder
0000,SPIDER.RAID=Spider Raid
0110,SPIDERBOT=Spiderbot
0116,SPIDERBOT=Spiderbot
1001,SPINDIZZY=Spindizzy
1003,SPUTNIK.ATTACK=Sputnik Attack
0001,SPY.HUNTER=Spy Hunter
@ -371,25 +371,25 @@
0001,STAR.BLAZER=Star Blazer
1000,STAR.CLONES=Star Clones
1001,STAR.CRUISER=Star Cruiser
0000,STAR.DANCE=Star Dance
0005,STAR.DANCE=Star Dance
0001,STAR.MAZE=Star Maze
0000,STAR.THIEF=Star Thief
1000,STARBALL=Starball
1000,STARBLASTER=Starblaster
1000,STARGATE=Stargate
0001,STAR.THIEF=Star Thief
1001,STARBALL=Starball
1001,STARBLASTER=Starblaster
1003,STARGATE=Stargate
1000,STARGLIDER=Starglider
1000,STARMINES=Starmines
0000,STATION.5=Station 5
0000,STELLAR.7=Stellar 7
0000,SUCCESSION=Succession
0000,SU=Suicide!
0001,SUCCESSION=Succession
0004,SU=Suicide!
0001,SUPER.BUNNY=Super Bunny
0000,SUPER.HUEY=Super Huey
0000,SUPER.PUCKMAN=Super Puckman
0000,SUPER.TAXMAN.2=Super Taxman 2
0001,SUPER.PUCKMAN=Super Puckman
0001,SUPER.TAXMAN.2=Super Taxman 2
1001,SUPER.ZAXXON=Super Zaxxon
0000,SWASHBUCKLER=Swashbuckler
1000,SWORD.OF.SHEOL=Sword of Sheol
0001,SWASHBUCKLER=Swashbuckler
1006,SWORD.OF.SHEOL=Sword of Sheol
0006,TALON=Talon
0001,TAPPER=Tapper
0116,TC=TechnoCop

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11436685
!be24 11438058
!le16 4545

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11387898
!be24 11389271
!le16 5294

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11328260
!be24 11329633
!le16 3654

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11341041
!be24 11342414
!le16 4064

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11357081
!be24 11358454
!le16 5245

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11375595
!be24 11376968
!le16 5870

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11441230
!be24 11442603
!le16 410

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11441984
!be24 11443357
!le16 448

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11442432
!be24 11443805
!le16 303

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11395338
!be24 11396711
!le16 1242

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11441716
!be24 11443089
!le16 67

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11436626
!be24 11437999
!le16 59

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11435141
!be24 11436514
!le16 1404

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11420758
!be24 11422131
!le16 521

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11393192
!be24 11394565
!le16 2146

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11396938
!be24 11398311
!le16 6433

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11441640
!be24 11443013
!le16 76

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11436545
!be24 11437918
!le16 81

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11441783
!be24 11443156
!le16 201

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11421279
!be24 11422652
!le16 4511

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11425790
!be24 11427163
!le16 1591

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11427381
!be24 11428754
!le16 1053

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11428434
!be24 11429807
!le16 3237

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11431671
!be24 11433044
!le16 2877

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11434548
!be24 11435921
!le16 479

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11435027
!be24 11436400
!le16 114

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11442735
!be24 11444108
!le16 2370

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11408327
!be24 11409700
!le16 3642

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11411969
!be24 11413342
!le16 2795

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11381465
!be24 11382838
!le16 6433

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 3700736
!be24 3701760
!le16 8192

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 3717120
!be24 3718144
!le16 8192

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 3708928
!be24 3709952
!le16 8192

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11319977
!be24 11321350
!le16 8283

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11331914
!be24 11333287
!le16 9127

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11345105
!be24 11346478
!le16 11976

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11362326
!be24 11363699
!le16 13269

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11396580
!be24 11397953
!le16 358

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11403371
!be24 11404744
!le16 4956

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11414764
!be24 11416137
!le16 5994

View File

@ -5,3 +5,4 @@ CAVRN.CHEAT=Type(06),AuxType(0200),Access(C3)
CG.CHEAT=Type(06),AuxType(0300),Access(C3)
KAMUNGAS.MB=Type(06),AuxType(0200),Access(C3)
RESQ.RAIDERS.MB=Type(06),AuxType(0300),Access(C3)
SITCRIT.CHEAT=Type(06),AuxType(BC00),Access(C3)

36
src/prelaunch/seafox.a Normal file
View File

@ -0,0 +1,36 @@
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SEAFOX",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $4939
sta $495A
jsr $4900 ; decompress
+DISABLE_ACCEL
jsr $4000
+ENABLE_ACCEL
jsr $BE06 ; decompress more
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
dec $7881 ; patch - don't decrease torpedoes
dec $7929 ; patch - don't decrease torpedoes
lda #$ad
sta $6C2E ; patch - don't decrease lives
sta $7D34 ; patch - don't decrease fuel
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp ($20)
!if * > $1C0 {
!error "code is too large, ends at ", *
}

29
src/prelaunch/shamus.a Normal file
View File

@ -0,0 +1,29 @@
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SHAMUS",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $2018
jsr $2000 ; decompress
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$a5
sta $7740 ; patch - don't decrease lives
sta $77EC ; patch - don't increase lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $747C
!if * > $1C0 {
!error "code is too large, ends at ", *
}

View File

@ -17,9 +17,30 @@
inx
stx $400C ; reset vector
+DISABLE_ACCEL
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$a5
sta $611 ; patch - don't decrease weapon
sta $62A ; patch - don't decrease weapon
dec $470D ; patch - don't decrease time
lda #$ED
sta $6EBA
lda #$6F
sta $6EBB ; patch - don't decrease life
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $4000
lda #$4C
sta $405A
jsr $4000
pha
lda #$A9
sta $478 ; work around IIe firmware issue
pla
jmp $405D
!if * > $1C0 {
!error "code is too large, ends at ", *

View File

@ -0,0 +1,33 @@
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SHORT.CIRCUIT",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $207C
jsr $2000 ; decompress
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
ldx #3
- lda patch,x
sta $9441,x
dex
bpl -
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $A100
patch !byte $a9,1,$ea,$8d
!if * > $1C0 {
!error "code is too large, ends at ", *
}

View File

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

View File

@ -0,0 +1,59 @@
;license:MIT
;(c) 2019-2020, 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH/SITCRIT.CHEAT",plain
*=$BC00
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+ENABLE_ACCEL
jsr $BD8E
+RESET_VECTOR reset
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
ldx #$A5
lda $BE93
cmp #'1'
beq hook1
cmp #'2'
beq hook2
cmp #'3'
bne +
hook3
stx $16B4 ; patch - don't decrease bombs
stx $1C57 ; patch - don't increase hits
stx $1CA5 ; patch - don't decrease fuel
beq + ; always
hook1
lda #$AD
sta $121C ; patch - don't decrease armor
sta $1562 ; patch - don't decrease armor
sta $1B5B ; patch - don't decrease armor
sta $1B6F ; patch - don't decrease armor
sta $1B75 ; patch - don't decrease armor
bne + ; always
hook2
lda $7AE8
cmp #$E6
bne +
stx $117E ; patch - don't decrease time
stx $160C ; patch - don't increase hits
stx $7AE8 ; patch - don't decrease fuel
stx $795C ; patch - don't decrease bombs
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
lda #0
rts
reset
+READ_RAM1_NO_WRITE
jmp ($FFFC)

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2019-2020 by qkumba
;(c) 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SC",plain
@ -7,27 +7,22 @@
!source "src/prelaunch/common.a"
jmp +
callback
+ENABLE_ACCEL
jsr $BD8E
+RESET_VECTOR reset
+DISABLE_ACCEL
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_AT sitcrit_cheat, 0
+READ_ROM_NO_WRITE
lda #0
rts
reset
+READ_RAM1_NO_WRITE
jmp ($FFFC)
+
lda #<callback
sta $8BF
lda #>callback
lda #$BC
sta $8C0
jmp $800 ; decompress
sitcrit_cheat
!byte sitcrit_cheat_e-sitcrit_cheat_b
sitcrit_cheat_b
!text "PRELAUNCH/SITCRIT.CHEAT"
sitcrit_cheat_e
!if * > $1C0 {
!error "code is too large, ends at ", *
}

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2019 by Frank M.
;(c) 2019, 2022 by Frank M., qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SNACK.ATTACK",plain
@ -22,6 +22,13 @@
; re-patch reset vector
+RESET_VECTOR $100
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$a5
sta $1D3F ; patch - don't increase lives
sta $5C26 ; patch - don't decrease lives
+
jmp $7E00
!if * > $1C0 {

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2019 by qkumba
;(c) 2019, 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SNAKE.BYTE",plain
@ -7,14 +7,28 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$B9
sta $842
lda #$60
sta $0858
jsr $0800 ; decompress
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
dec $7639 ; patch - don't increase lives
dec $78A8 ; patch - don't decrease lives
+
jsr DisableAccelerator
+LC_REBOOT
lda #0
sta $7a11
lda #1
sta $7a19
+READ_ROM_NO_WRITE
ldx #0
stx $7a11
inx
stx $7a19
inc $7A26
jmp $7680
!if * > $1C0 {

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2019 by Frank M.
;(c) 2019, 2022 by Frank M., qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SPACE.QUARKS",plain
@ -8,14 +8,24 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $3E9D
lda #$4C
sta $3EC2
jsr $3E65 ; decompress/set reset vector
+RESET_VECTOR $100
+DISABLE_ACCEL
jmp $200
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$a5
sta $1177 ; patch - don't increase lives
sta $1196 ; patch - don't decrease lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $203
!if * > $1C0 {
!error "code is too large, ends at ", *

View File

@ -15,7 +15,18 @@
+NEW_RESET_VECTOR $200
; game leaks stack
+DISABLE_ACCEL
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$ad
sta $77A1 ; patch - don't decrease lives
sta $7938 ; patch - don't decrease lives
sta $8243 ; patch - don't increase lives
sta $8726 ; patch - don't decrease fuel
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $9500

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2019 by qkumba/Frank M.
;(c) 2019, 2022 by qkumba/Frank M.
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SPIDER.RAID",plain
@ -20,7 +20,14 @@
sta $40F1
jsr $4000
+DISABLE_ACCEL
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
dec $976A ; patch - don't decrease lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $4246
!if * > $1C0 {

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2020 by Frank M.
;(c) 2020, 2022 by Frank M., qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SPIDERBOT",plain
@ -7,8 +7,31 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
inc $3F4 ; force reboot
jmp $6000
lda #$60
sta $6085
jsr $6000
lda #$60
sta $843
jsr $800
ldx #$60
stx $4047
stx $407E
jsr $4000
lda MachineStatus
and #CHEATS_ENABLED
php
jsr DisableAccelerator
jsr $4081
jsr $404A
plp
beq +
lda #$ad
sta $DC4E ; patch - don't decrease power
sta $F8FC ; patch - don't decrease power
+
jmp $3EE
!if * > $1C0 {
!error "code is too large, ends at ", *

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/STAR.DANCE",plain
@ -19,7 +19,15 @@ hook lda #0
lda #1
sta $700C ; reset vector fix
+DISABLE_ACCEL
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$a5
sta $1272 ; patch - don't decrease time
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $7000
!if * > $1C0 {

View File

@ -0,0 +1,30 @@
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/STAR.THIEF",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $5F12
jsr $3A55 ; decompress
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$bd
sta $6B31 ; patch - don't decrease lives
sta $6DC2 ; patch - don't decrease lives
sta $70F2 ; patch - don't decrease lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $6801
!if * > $1C0 {
!error "code is too large, ends at ", *
}

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/STARBALL",plain
@ -14,14 +14,40 @@
sta $A1E+2
jmp $800 ; decompress
hook lda #0
sta $9E52
lda #1
sta $9E53 ; reset vector fix
hook ldx #0
stx $9E52
inx
stx $9E53 ; reset vector fix
+DISABLE_ACCEL
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #<callback
sta $BD07
lda #>callback
sta $BD08
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $9D84
callback
pla
pla
jsr $BD5F
jsr $BD09
lda $B7EC
cmp #$15
bne +
ldx $B7ED
dex
bne +
lda #$ad
sta $96DE ; patch - don't decrease balls
+ clc
rts
!if * > $1C0 {
!error "code is too large, ends at ", *
}

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2019 by Frank M.
;(c) 2019, 2022 by Frank M.
!cpu 6502
!to "build/PRELAUNCH.INDEXED/STARBLASTER",plain
@ -14,6 +14,15 @@
+NEW_RESET_VECTOR $280
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$a5
sta $6277 ; patch - don't increase lives
sta $6955 ; patch - don't decrease lives
lda #$A1
sta $FD ; fix checksum
+
jmp $6000
!if * > $1C0 {

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/STARGATE",plain
@ -26,7 +26,19 @@
lda #$A4
sta $47F4 ; reset vector (moved to $3F2/3/4)
+DISABLE_ACCEL
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
ldx #$FF
stx $1946 ; patch - don't decrease people
inx
stx $1C11 ; patch - don't decrease lives
lda #$25
sta $1E98 ; patch - don't decrease bombs
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $5000

View File

@ -0,0 +1,31 @@
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SUCCESSION",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $8789
jsr $6F94 ; decompress
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$a5
sta $670D ; patch - don't decrease lives
sta $683D ; patch - don't increase time
sta $68A9 ; patch - don't decrease time
sta $6CC6 ; patch - don't increase lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $6000
!if * > $1C0 {
!error "code is too large, ends at ", *
}

30
src/prelaunch/suicide.a Normal file
View File

@ -0,0 +1,30 @@
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SU",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $6030
jsr $6000 ; decompress
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$ad
sta $4A60 ; patch - don't decrease lives
sta $4EEE ; patch - don't increase lives
dec $4B5B ; patch - don't decrease time
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $1000
!if * > $1C0 {
!error "code is too large, ends at ", *
}

View File

@ -0,0 +1,30 @@
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SUPER.PUCKMAN",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $6823
jsr $5ADC ; decompress
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$a5
sta $B82 ; patch - don't decrease lives
sta $1BF3 ; patch - don't increase lives
sta $1C05 ; patch - don't increase lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $400
!if * > $1C0 {
!error "code is too large, ends at ", *
}

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/SUPER.TAXMAN.2",plain
@ -22,7 +22,17 @@ hook lda #0
lda #$2C ; annunciator fix - kills Gizmo/joyport support
sta $666A ; but fixes ][+ 80-col softswitch and //c+ coloring
+DISABLE_ACCEL
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$a5
sta $641A ; patch - don't increase lives
sta $67D7 ; patch - don't increase lives
sta $9549 ; patch - don't decrease lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $4000
!if * > $1C0 {

View File

@ -1,5 +1,5 @@
;license:MIT
;(c) 2019-2020 by Frank M.
;(c) 2019-2020, 2022 by Frank M., qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SWASHBUCKLER",plain
@ -18,6 +18,13 @@
+NEW_RESET_VECTOR $BFF0
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$ad
sta $115A ; patch - don't increase lives
sta $136B ; patch - don't decrease lives
+
jmp $1B34
!if * > $1C0 {

View File

@ -16,7 +16,15 @@
inc $70 ; uninitialised variable
+DISABLE_ACCEL
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$a5
sta $6BDE ; patch - don't decrease armour
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $50F
!if * > $1C0 {