add Batman cheat and fix game bug

This commit is contained in:
Peter Ferrie 2022-05-26 12:52:37 -07:00
parent 796c739a2b
commit 0043fff1cf
43 changed files with 70 additions and 43 deletions

View File

@ -57,7 +57,7 @@
1111,BAD.DUDES=Bad Dudes
1000,BALLBLAZER=Ballblazer
0001,BANDITS=Bandits
1110,BATMAN=Batman
1115,BATMAN=Batman
0000,BY=Bats in the Belfry
0001,BATTLE.CRUISER=Battle Cruiser
0001,BATTLEZONE=Battlezone

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11540791
!be24 11541303
!le16 4626

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11491874
!be24 11492386
!le16 5343

View File

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

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11444951
!be24 11445463
!le16 4074

View File

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

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11479545
!be24 11480057
!le16 5880

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11539214
!be24 11539726
!le16 1437

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11524815
!be24 11525327
!le16 537

View File

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

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11500963
!be24 11501475
!le16 6449

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11512368
!be24 11512880
!le16 3658

View File

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

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11485425
!be24 11485937
!le16 6449

View File

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

View File

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

View File

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

View File

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

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11435794
!be24 11436306
!le16 9157

View File

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

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 11466246
!be24 11466758
!le16 13299

View File

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

View File

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

View File

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

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/BATMAN",plain
@ -7,9 +7,36 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
inc $3F4 ; force reboot
jmp $1000
lda #$60
sta $1196
jsr $1000 ; decompress
dex
jsr $D300 ; decompress
lda #$60
sta $901
jsr $800 ; decompress
jsr DisableAccelerator
ldx #7
jsr $984
lda MachineStatus
and #CHEATS_ENABLED
beq +
lda #<callback
sta $AD37
lda #>callback
sta $AD38
+ lda #0
sta $FD31 ; uninitialised variable
jmp $904
callback
lda #$AD
sta $FC14
sta $FC65
jmp $AB18
!if * > $1C0 {
!error "code is too large, ends at ", *
}