fix Cavern Creatues, Conquering Worlds, Demonic Decks

This commit is contained in:
Peter Ferrie 2022-06-06 08:15:42 -07:00
parent 8885ef58c7
commit 7bf982ce7b
3 changed files with 12 additions and 7 deletions

View File

@ -8,10 +8,10 @@
!source "src/constants.a" ; no code in these
!source "src/macros.a"
ldy #0
- lda callback, y
sta $110, y
iny
ldy #(callback_e-callback)
- lda callback-1, y
sta $10f, y
dey
bne -
jmp $110
@ -83,3 +83,4 @@ noaccel
+READ_ROM_NO_WRITE
rts
}
callback_e

View File

@ -54,8 +54,13 @@ callback2
+ cpx #6
bne ++
cmp #$0D
bne ++
bne +++
sty $400E ; fix reset vector
+++ cmp #6
bne ++
sty $47B6
dey
sty $47B1 ; fix reset vector
++ clc
rts

View File

@ -11,7 +11,6 @@
lda #$60
sta $206A
jsr $2000 ; decompress
+NEW_RESET_VECTOR $BFF0
+READ_RAM2_NO_WRITE
lda MachineStatus
and #CHEATS_ENABLED
@ -22,7 +21,7 @@
+
jsr DisableAccelerator
+READ_ROM_NO_WRITE
jmp $200
jmp $200 ; no reset vector, code in $3Fx
!if * > $1C0 {
!error "code is too large, ends at ", *