From 0c051e8d5a174862752707dff14d7029bc3c9863 Mon Sep 17 00:00:00 2001 From: spotlessmind1975 Date: Sat, 26 Oct 2024 14:18:00 +0000 Subject: [PATCH] Fixed filling color and irq management for ef936x scrolling. --- ugbc/src/hw/ef936x/vscroll_text.asm | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/ugbc/src/hw/ef936x/vscroll_text.asm b/ugbc/src/hw/ef936x/vscroll_text.asm index 53f320523..1638c7405 100755 --- a/ugbc/src/hw/ef936x/vscroll_text.asm +++ b/ugbc/src/hw/ef936x/vscroll_text.asm @@ -36,6 +36,9 @@ ;* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * VSCROLLT + + ORCC #$50 + LDA CONSOLEX1 BNE VSCROLLTNEW LDA CONSOLEY1 @@ -61,6 +64,9 @@ VSCROLLTNEW ; ---------------------------------------------- VSCROLLTNEWDB + + ANDCC #$AF + RTS ; ---------------------------------------------- @@ -103,6 +109,9 @@ VSCROLLTNEW3X BNE VSCROLLTNEW4X JMP VSCROLLTNEW4 VSCROLLTNEW4X + + ANDCC #$AF + RTS VSCROLLTNEW0 @@ -259,6 +268,7 @@ VSCROLLTNEWDOWN VSCROLLTNEWE PULS A,B,X,Y,U + ANDCC #$AF RTS ; ------------------------------- @@ -268,6 +278,7 @@ VSCROLLTORG PSHS D LDD BITMAPADDRESS ADDD CURRENTFRAMESIZE + SUBB CURRENTSL STD