fix reset vector on "A City Dies..." (#368)

This commit is contained in:
frankmilliron
2021-03-06 10:00:09 -08:00
committed by GitHub
parent 8982639ef8
commit 8266dd432a

View File

@@ -0,0 +1,41 @@
;license:MIT
;(c) 2021 by Frank M.
!cpu 6502
!to "build/PRELAUNCH/A.CITY.DIES",plain
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
+NEW_RESET_VECTOR $280
lda #$60
sta $9F2
jsr $800 ; decompress1
lda #$4C
sta $B741
lda #<hook
sta $B742
lda #>hook
sta $B743
jmp $B700 ; decompress2
hook lda #$A9
sta $9E30
sta $9E3B
lda #$EA
sta $9E32
sta $9E3D
lda #$02
sta $9E31
lda #$80
sta $9E3C ; change vector to $280
+DISABLE_ACCEL
jmp $BFC8
!if * > $1C0 {
!error "code is too large, ends at ", *
}