mirror of
https://github.com/a2-4am/4cade.git
synced 2025-04-11 12:38:05 +00:00
fix Spy Hunter reset vector
This commit is contained in:
parent
0c36f60623
commit
2d01ded794
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user