4cade/src/prelaunch/black.magic.a
frankmilliron 09c6241ca5
fix Black Magic on Fastchip (#297)
The latest commit still has issues with Fastchip, despite it fixing the color issues on //c and //c+. I just removed all the acceleration code completely. Seems to work on ][+, //c, //c+, Fastchip, and //gs without issues.
2020-07-16 08:54:20 -04:00

47 lines
913 B
Plaintext

;license:MIT
;(c) 2019 by qkumba/Tom Greene/Frank M.
!cpu 6502
!to "build/PRELAUNCH/BLACK.MAGIC",plain
*=$106
!source "src/prelaunch/common.a"
; acceleration has problems with Fastchip
; let's remove it
lda #$60
sta $9C2
jsr $800 ; decompress
lda #$60
sta $1B2D
sta $D6E6
jsr $1B00
jsr $D000
lda #<callback
sta $8D5
lda #>callback
sta $8D6
jmp $800
callback
lda #$4C
sta $D6EB
jsr $D003
ldx #5
- lda reset, x
sta $4182, x
dex
bpl -
lda #$20
sta $D6EB
jmp $D6EE
reset
+READ_ROM_NO_WRITE
jmp $FAA6
!if * > $1C0 {
!error "code is too large, ends at ", *
}