add some cheats

This commit is contained in:
Peter Ferrie 2022-05-11 16:32:31 -07:00
parent 2d8e9f274a
commit 8bc60cd335
46 changed files with 161 additions and 53 deletions

View File

@ -163,8 +163,8 @@
0000,FS2=Flight Simulator II
0000,FLIP.OUT=Flip Out
0001,FLOBYNOID=Flobynoid
0000,FLOPPY=Floppy
0000,FLY.WARS=Fly Wars
0004,FLOPPY=Floppy
0001,FLY.WARS=Fly Wars
1101,FORCE.7=Force 7
0001,FRAZZLE=Frazzle
0001,FREE.FALL=Free Fall
@ -191,10 +191,10 @@
0000,GUMBALL=Gumball
1003,H.E.R.O=H E R O
0000,HADRON=Hadron
0000,HANDY.DANDY=Handy Dandy
0001,HANDY.DANDY=Handy Dandy
0006,HARD.HAT.MACK=Hard Hat Mack
0000,HEAD.ON=Head On
1110,HEAVY.BARREL=Heavy Barrel
0001,HEAD.ON=Head On
1111,HEAVY.BARREL=Heavy Barrel
0000,HIGH.RISE=High Rise
0000,HORIZON.V=Horizon V
0001,HUNGRYBOY=Hungryboy

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11418374
!be24 11418886
!le16 4515

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -15,7 +15,19 @@
lda #1
sta $42AF
+DISABLE_ACCEL
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$ad
sta $4400 ; patch - don't increase lives
sta $46E0 ; patch - don't decrease lives
lda #0
sta $4255 ; patch - don't decrease time
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $4000
!if * > $1C0 {

32
src/prelaunch/fly.wars.a Normal file
View File

@ -0,0 +1,32 @@
;license:MIT
;(c) 2022 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/FLY.WARS",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $8B28
jsr $55FD ; decompress
lda #$60
sta $5A6
jsr $5A0 ; decompress more
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$ad
sta $7C32 ; patch - don't decrease lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $5500
!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/HANDY.DANDY",plain
@ -18,7 +18,17 @@
hook lda #1
sta $75DD ; reset vector fix
+DISABLE_ACCEL
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$a5
sta $7165 ; patch - don't decrease lives
sta $72DC ; patch - don't increase lives
sta $72E1 ; patch - don't increase lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $6000
!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/HEAD.ON",plain
@ -7,6 +7,9 @@
!source "src/prelaunch/common.a"
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
; clobbers $100, sets LC & page 3 reset vectors
+NEW_RESET_VECTOR $7000
@ -17,14 +20,31 @@
lda $105 ; clone actual TR reentry point to $7000
sta $7005 ; loops between LC and $7000 otherwise
+READ_RAM2_WRITE_RAM2
lda #0
sta $FFFC
lda #$70
sta $FFFD ; LC reset vector fix to $7000
lda #$4C
sta $203E
lda #<callback
sta $203F
lda #>callback
sta $2040
jmp $2000 ; decompress
callback
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #$a5
sta $1072 ; patch - don't increase lives
sta $18B7 ; patch - don't decrease lives
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $2000
jmp $6900
!if * > $1C0 {
!error "code is too large, ends at ", *

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/HEAVY.BARREL",plain
@ -7,8 +7,42 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $11EC
jsr $1000 ; load "DOS"
lda #$48
sta $D34A
pha
tya
pha
jsr $D34D ; restore ZP
lda #$60
sta $8EB
jsr $800 ; decompress
lda #$60
sta $ADC3
jsr $A827 ; decompress more
inc $3F4 ; force reboot
jmp $1000
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #<callback
sta $A8BD
sta $A8D5
lda #>callback
sta $A8BE
sta $A8D6
+
jsr DisableAccelerator
jmp $A821
callback
lda #$ad
sta $E76D ; patch - don't decrease lives
sta $E7B7 ; patch - don't increase lives
jmp $A922
!if * > $1C0 {
!error "code is too large, ends at ", *