mirror of https://github.com/a2-4am/4cade.git
37 lines
765 B
Plaintext
37 lines
765 B
Plaintext
;license:MIT
|
|
;(c) 2019-2020, 2023 by 4am and qkumba
|
|
|
|
!cpu 6502
|
|
!to "build/PRELAUNCH.INDEXED/SERPENTINE",plain
|
|
*=$106
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
+ENABLE_ACCEL
|
|
+NEW_RESET_VECTOR $3C0
|
|
ldx #(patch_e-patch)-1
|
|
- lda patch,x
|
|
sta $390,x
|
|
dex
|
|
bpl -
|
|
lda #$90 ; call patch instead of $4000
|
|
sta $8C58
|
|
lda #$03
|
|
sta $8C59
|
|
lda #$4C
|
|
sta $8CEF
|
|
jmp $43F5 ; decompress and show title
|
|
patch !pseudopc $390 {
|
|
+DISABLE_ACCEL
|
|
jsr $4000
|
|
+ENABLE_ACCEL
|
|
jsr $8C5A
|
|
+DISABLE_ACCEL
|
|
jmp $0800
|
|
}
|
|
patch_e
|
|
|
|
!if * > $1C0 {
|
|
!error "code is too large, ends at ", *
|
|
}
|