add Spellwielder cheat, fix cache

This commit is contained in:
Peter Ferrie 2022-06-02 17:11:07 -07:00
parent 71645d75ef
commit 89a07cdd56
6 changed files with 23 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -359,7 +359,7 @@
1004,SPACE.RESCUE=Space Rescue
0007,SPARE.CHANGE=Spare Change
0001,SPECTRE=Spectre
0100,SPELLWIELDER=Spellwielder
0106,SPELLWIELDER=Spellwielder
0001,SPIDER.RAID=Spider Raid
0116,SPIDERBOT=Spiderbot
1001,SPINDIZZY=Spindizzy

View File

@ -7,6 +7,9 @@
!source "src/prelaunch/common.a"
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
sta cheat+1
lda #<callback1
sta $77A2
lda #>callback1
@ -29,8 +32,27 @@ callback2
sta $8778
lda #$FA
sta $877A ; reset vector
cheat
lda #0 ; SMC
beq +
lda #<callback3
sta $ABD3
lda #>callback3
sta $ABD4
sta $1812
+
jmp $BE00
callback3
ldx $1812
dex
bne +
stx $1812
stx $1ACB
+
jmp $8774
!if * > $1C0 {
!error "code is too large, ends at ", *
}