ROMX: Fix for IIc+ cache issue

c/o Jeff Mazur
This commit is contained in:
Joshua Bell 2024-06-18 18:28:06 -07:00
parent 92405b500e
commit 10e29ecc0e

View File

@ -266,10 +266,12 @@ bufloop:
;; -------------------------------------------------- ;; --------------------------------------------------
;; Restore what was originally at `RTC_BUF` ;; Restore what was originally at `RTC_BUF`
;; And fix //c+ cache while we're ad it!
ldx #0 ldx #0
: pla : pla
sta RTC_BUF,x sta RTC_BUF,x
lda $F8F0,x ; clear cache of $D8F0-D901
inx inx
cpx #RamStubEnd-RamStub+7+1 cpx #RamStubEnd-RamStub+7+1
bne :- bne :-