Reset Vector Fixes (#90)

This commit is contained in:
frankmilliron 2019-12-26 19:27:53 -08:00 committed by 4am
parent 0b924e936e
commit 30f414a3e7
3 changed files with 51 additions and 4 deletions

View File

@ -14,14 +14,16 @@
lda #$60
sta $bd40
jsr $bc94
lda #1 ; reset vector fix
sta $7C01 ; to $3F3
lda #$A4
sta $7C02 ; to $3F4 (doesn't change $3F2)
+DISABLE_ACCEL
jsr $5ff8 ; run intro
+ENABLE_ACCEL
; re-patch reset vector (doesn't work during copyright sequence)
+RESET_VECTOR $100
lda #$6c
sta $bd40
lda #$60

19
src/prelaunch/tunnel.terror.a Executable file
View File

@ -0,0 +1,19 @@
;license:MIT
;(c) 2019 by Frank M.
!cpu 6502
!to "build/PRELAUNCH/TUNNEL.TERROR",plain
*=$106
!source "src/prelaunch/common.a"
lda #1 ; reset vector fix
sta $6E13 ; to $3F3
lda #$A4
sta $6E15 ; to $3F4 (doesn't change $3F2)
jmp $4000
!if * > $1C0 {
!error "code is too large, ends at ", *
}

26
src/prelaunch/vindicator.a Executable file
View File

@ -0,0 +1,26 @@
;license:MIT
;(c) 2019 by Frank M.
!cpu 6502
!to "build/PRELAUNCH/VINDICATOR",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $1867
jsr $181C ; decompress
+NEW_RESET_VECTOR $BFF0
lda #$F0
sta $4001
lda #$BF
sta $400F ; reset vector fix
+DISABLE_ACCEL
jmp $4000
!if * > $1C0 {
!error "code is too large, ends at ", *
}