fix Spy Hunter reset vector

This commit is contained in:
Peter Ferrie 2025-02-28 17:38:21 -08:00
parent 0c36f60623
commit 2d01ded794
3 changed files with 22 additions and 5 deletions

View File

@ -391,6 +391,7 @@ ATTRACT_DGR = %10000000
; shared symbols for prelaunch and effects to call ProRWTS2 functions
iCurBlockLo = $D601 ; constant
iCurBlockHi = $D603 ; constant
isaveslot = $D847 ; for accelerator calls after screen holes overwritten
launchpatch = $D85C ; glue.launch.a
itraverse = $DB4B ; Roger Rabbit, avoid, use Infiltrator 2 style instead
; also Columns (via file in disk image)

View File

@ -18,7 +18,11 @@
jmp $4000
callback
+NEW_RESET_VECTOR $300
ldy #1
- lda $104, y
sta $304, y
dey
bpl -
+RESET_AND_IRQ_VECTOR $300
ldy #0
sty $0D8E
@ -50,7 +54,11 @@ callback
sta $EB2
sta $61C5
+DISABLE_ACCEL
+READ_RAM2_NO_WRITE
jsr isaveslot
jsr DisableAccelerator
jsr isaveslot
+READ_ROM_NO_WRITE
jmp $0451

View File

@ -7,6 +7,7 @@
!source "src/macros.a"
+ENABLE_ACCEL
lda #<callback
sta $4013
lda #>callback
@ -14,22 +15,29 @@
jmp $4000
*=$12e ; game sets stack pointer to here
callback nop
+NEW_RESET_VECTOR $300
ldy #1
- lda $104, y
sta $304, y
dey
bpl -
+RESET_AND_IRQ_VECTOR $300
ldy #0
sty $0D8E
iny
ldy #3
sty $0D93
+READ_RAM2_NO_WRITE
jsr HideLaunchArtworkLC2
lda MachineStatus
+READ_ROM_NO_WRITE
and #CHEATS_ENABLED
beq +
lda #$AD
sta $739D ; patch - don't decrease timer
+
jsr isaveslot
jsr DisableAccelerator
jsr isaveslot
+READ_ROM_NO_WRITE
jmp $0451
!if * > PrelaunchMax {