From cb804a4cea1a132758c5091bc65eaba6d52e1f41 Mon Sep 17 00:00:00 2001 From: Vitor Vilela Date: Sat, 4 Aug 2018 07:57:09 -0300 Subject: [PATCH] Version 1.24 CC-DMA fixes. --- changes.txt | 3 +++ readme.txt | 2 +- sa1.asm | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/changes.txt b/changes.txt index 460b339..7efc333 100644 --- a/changes.txt +++ b/changes.txt @@ -1,3 +1,6 @@ +SA-1 Pack v1.24: + - Fixed Character Conversion DMA randomly freezing the game when SA-1 is unable to receive IRQs. + SA-1 Pack v1.23: - Made the dynamic sprite uploader only run on level and title screen game mode. This may fix some issues with dynamic sprites getting garbaged graphics on fade in/out or even unwanted uploads. diff --git a/readme.txt b/readme.txt index c2da389..d6dea34 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ \___ \ / /\ \______| | | ___/ _` |/ __| |/ / ____) / ____ \ | | | | | (_| | (__| < |_____/_/ \_\ |_| |_| \__,_|\___|_|\_\ - by Vitor Vilela Version 1.23 + by Vitor Vilela Version 1.24 The SA-1 Pack consist of a couple of patches that enable SA-1 and prepare your SMW ROM to use the SA-1 CPU in the diff --git a/sa1.asm b/sa1.asm index ee94bd9..c9b4103 100644 --- a/sa1.asm +++ b/sa1.asm @@ -480,6 +480,9 @@ Character_Conversion_DMA: ; CCDMA Routine. STY $2200 ; / DEY ; \ Increase $2116/$2117 then writing to $2119 STY $2115 ; / +- LDA $318D ; \ Make sure that Character Conversion is ON. + BEQ - ; | + STZ $318D ; / ; %ccdmaslot(0) ; \ Unrolled loop %ccdmaslot(1) ; | to run each character conversion DMA table slot. @@ -750,6 +753,7 @@ ProcessRequest: EnableChvDMA: LDA #$B0 ; \ Enable Character Conversion DMA CC1 (BW-RAM->I-RAM) + STA $318D ; | STA $2230 ; / BRA SA1_IRQEnding ; Return