4cade/src/prelaunch/slicks.a

51 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-05-23 16:43:17 +00:00
;license:MIT
;(c) 2020 by qkumba/Frank M.
2020-05-23 16:43:17 +00:00
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SLICKS",plain
2020-05-23 16:43:17 +00:00
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
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
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
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 ", *
}