2020-05-23 16:43:17 +00:00
|
|
|
;license:MIT
|
2020-06-08 12:28:43 +00:00
|
|
|
;(c) 2020 by qkumba/Frank M.
|
2020-05-23 16:43:17 +00:00
|
|
|
|
|
|
|
!cpu 6502
|
2021-10-16 01:34:39 +00:00
|
|
|
!to "build/PRELAUNCH.INDEXED/SLICKS",plain
|
2020-05-23 16:43:17 +00:00
|
|
|
*=$106
|
|
|
|
|
|
|
|
!source "src/prelaunch/common.a"
|
|
|
|
|
|
|
|
+ENABLE_ACCEL
|
2020-06-08 12:28:43 +00:00
|
|
|
inc $3F4 ; force reboot
|
|
|
|
|
2020-05-23 16:43:17 +00:00
|
|
|
lda #$60
|
|
|
|
sta $5612
|
|
|
|
jsr $800 ; decompress
|
|
|
|
|
|
|
|
lda #$88
|
|
|
|
sta $BF0E ; don't bank out
|
|
|
|
|
|
|
|
+READ_RAM2_NO_WRITE
|
|
|
|
lda MockingboardStuff
|
2022-06-12 23:14:15 +00:00
|
|
|
and #7
|
2020-05-23 16:43:17 +00:00
|
|
|
cmp #1
|
|
|
|
ora #$C0
|
|
|
|
bcc skipmb
|
2020-05-26 03:22:12 +00:00
|
|
|
cmp #$C4
|
2020-05-23 16:43:17 +00:00
|
|
|
beq skipmb
|
|
|
|
ldy #0
|
|
|
|
- ldx $1D77,Y ;find #$C4s
|
|
|
|
cpx #$C4
|
|
|
|
bne +
|
|
|
|
sta $1D77,Y ;Replace #$C4 with detected slot
|
|
|
|
+ ldx $1E77,Y ;find #$C4s
|
|
|
|
cpx #$C4
|
|
|
|
bne +
|
|
|
|
sta $1E77,Y ;Replace #$C4 with detected slot
|
|
|
|
+ iny
|
|
|
|
bne -
|
|
|
|
|
|
|
|
skipmb
|
2020-06-08 12:28:43 +00:00
|
|
|
lda #$2C
|
|
|
|
sta $974C ; skip reset vector subroutine
|
|
|
|
|
2020-05-23 16:43:17 +00:00
|
|
|
jsr DisableAccelerator
|
|
|
|
+READ_ROM_NO_WRITE
|
|
|
|
jmp $803
|
|
|
|
|
|
|
|
!if * > $1C0 {
|
|
|
|
!error "code is too large, ends at ", *
|
|
|
|
}
|