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.
This commit is contained in:
frankmilliron 2020-07-16 05:54:20 -07:00 committed by GitHub
parent ec7002c7c8
commit 09c6241ca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
;license:MIT ;license:MIT
;(c) 2019 by qkumba ;(c) 2019 by qkumba/Tom Greene/Frank M.
!cpu 6502 !cpu 6502
!to "build/PRELAUNCH/BLACK.MAGIC",plain !to "build/PRELAUNCH/BLACK.MAGIC",plain
@ -7,7 +7,8 @@
!source "src/prelaunch/common.a" !source "src/prelaunch/common.a"
+ENABLE_ACCEL ; acceleration has problems with Fastchip
; let's remove it
lda #$60 lda #$60
sta $9C2 sta $9C2
jsr $800 ; decompress jsr $800 ; decompress
@ -15,23 +16,17 @@
lda #$60 lda #$60
sta $1B2D sta $1B2D
sta $D6E6 sta $D6E6
jsr DisableAccelerator
jsr $1B00 jsr $1B00
jsr EnableAccelerator
jsr $D000 jsr $D000
lda #<callback lda #<callback
sta $8D5 sta $8D5
lda #>callback lda #>callback
sta $8D6 sta $8D6
jsr DisableAccelerator
sta $C05F
jmp $800 jmp $800
callback callback
lda #$4C lda #$4C
sta $D6EB sta $D6EB
jsr EnableAccelerator
sta $C05F
jsr $D003 jsr $D003
ldx #5 ldx #5
- lda reset, x - lda reset, x
@ -40,8 +35,6 @@ callback
bpl - bpl -
lda #$20 lda #$20
sta $D6EB sta $D6EB
jsr DisableAccelerator
sta $C05F
jmp $D6EE jmp $D6EE
reset reset