fix Black Magic restart

This commit is contained in:
Peter Ferrie 2024-10-09 20:42:43 -07:00
parent 74aabdcef2
commit 01d57dea03

View File

@ -10,49 +10,36 @@
; acceleration has problems with Fastchip ; acceleration has problems with Fastchip
; let's remove it ; let's remove it
lda #<reset ; fix reset during title ldx #5
sta $9AE - lda reset, x
sta $80FC sta $163, x
dex
bpl -
lda #$60 lda #$60
sta $9C2 sta $9C2
jsr $800 ; decompress jsr $800 ; decompress
lda #$60 lda #$60
sta $1B2D
sta $D6E6 sta $D6E6
jsr $1B00 jsr $1B00
lda #<callback1 lda #<callback
sta $D7E9
lda #>callback1
sta $D7EA
jsr $D000
lda #<callback2
sta $8D5 sta $8D5
lda #>callback2 lda #>callback
sta $8D6 sta $8D6
jmp $800 jmp $800
callback1 callback
lda #<reset
sta $5029 ; fix tamper check
sta $80FC ; re-cloned to $FFFC
jmp $5000
callback2
lda #$4C lda #$4C
sta $D6EB sta $D6EB
jsr $D003 jsr $D003
ldx #5 ldx #5
- lda reset, x - lda $163, x
sta $4182, x sta $4163, x
dex dex
bpl - bpl -
lda #$20 lda #$20
sta $D6EB sta $D6EB
lda #$63 ; back to original vector
sta $3F2
sta $FFFC
+READ_RAM2_WRITE_RAM2 ; fix on //c+ +READ_RAM2_WRITE_RAM2 ; fix on //c+
jmp $D6EE jmp $D6EE