4cade/src/prelaunch/serpentine.a

28 lines
660 B
Plaintext
Raw Normal View History

2019-10-05 22:58:45 +00:00
;license:MIT
2020-05-24 16:26:25 +00:00
;(c) 2019-2020 by 4am
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"
2019-12-24 04:19:39 +00:00
+NEW_RESET_VECTOR $3C0
2019-10-05 22:58:45 +00:00
ldx #$0E ; copy patch code to zero page (stack will be destroyed by the time we need to patch)
- lda patch,x
2020-05-24 16:26:25 +00:00
sta $3B0,x
2019-10-05 22:58:45 +00:00
dex
bpl -
2020-05-24 16:26:25 +00:00
lda #$B0 ; call patch instead of $233
2019-12-10 01:05:13 +00:00
sta $8C96
2020-05-24 16:26:25 +00:00
lda #$03
2019-12-10 01:05:13 +00:00
sta $8C97
2019-10-05 22:58:45 +00:00
jmp $43F5 ; decompress and show title
patch
2020-05-24 16:26:25 +00:00
jsr $00F0 ; decompress
2019-10-05 22:58:45 +00:00
jmp $0800
2019-12-13 05:51:54 +00:00
!if * > $1C0 {
!error "code is too large, ends at ", *
}