4cade/src/prelaunch/serpentine.a

37 lines
765 B
Plaintext
Raw Normal View History

2019-10-05 22:58:45 +00:00
;license:MIT
2024-01-08 01:14:25 +00:00
;(c) 2019-2020, 2023 by 4am and qkumba
2019-10-05 22:58:45 +00:00
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SERPENTINE",plain
2019-10-05 22:58:45 +00:00
*=$106
!source "src/prelaunch/common.a"
2024-01-08 01:14:25 +00:00
+ENABLE_ACCEL
2019-12-24 04:19:39 +00:00
+NEW_RESET_VECTOR $3C0
2024-01-08 01:14:25 +00:00
ldx #(patch_e-patch)-1
2019-10-05 22:58:45 +00:00
- lda patch,x
2024-01-08 01:14:25 +00:00
sta $390,x
2019-10-05 22:58:45 +00:00
dex
bpl -
2024-01-08 01:14:25 +00:00
lda #$90 ; call patch instead of $4000
sta $8C58
2020-05-24 16:26:25 +00:00
lda #$03
2024-01-08 01:14:25 +00:00
sta $8C59
lda #$4C
sta $8CEF
2019-10-05 22:58:45 +00:00
jmp $43F5 ; decompress and show title
2024-01-08 01:14:25 +00:00
patch !pseudopc $390 {
+DISABLE_ACCEL
jsr $4000
+ENABLE_ACCEL
jsr $8C5A
+DISABLE_ACCEL
2019-10-05 22:58:45 +00:00
jmp $0800
2024-01-08 01:14:25 +00:00
}
patch_e
2019-12-13 05:51:54 +00:00
!if * > $1C0 {
!error "code is too large, ends at ", *
}