Skip to content

Commit

Permalink
Fixed filling color and irq management for ef936x scrolling.
Browse files Browse the repository at this point in the history
  • Loading branch information
spotlessmind1975 committed Oct 26, 2024
1 parent 6646732 commit 0c051e8
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions ugbc/src/hw/ef936x/vscroll_text.asm
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
;* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

VSCROLLT

ORCC #$50

LDA CONSOLEX1
BNE VSCROLLTNEW
LDA CONSOLEY1
Expand All @@ -61,6 +64,9 @@ VSCROLLTNEW
; ----------------------------------------------

VSCROLLTNEWDB

ANDCC #$AF

RTS

; ----------------------------------------------
Expand Down Expand Up @@ -103,6 +109,9 @@ VSCROLLTNEW3X
BNE VSCROLLTNEW4X
JMP VSCROLLTNEW4
VSCROLLTNEW4X

ANDCC #$AF

RTS

VSCROLLTNEW0
Expand Down Expand Up @@ -259,6 +268,7 @@ VSCROLLTNEWDOWN

VSCROLLTNEWE
PULS A,B,X,Y,U
ANDCC #$AF
RTS

; -------------------------------
Expand All @@ -268,6 +278,7 @@ VSCROLLTORG
PSHS D
LDD BITMAPADDRESS
ADDD CURRENTFRAMESIZE
SUBB CURRENTSL
STD <MATHPTR0
PULS D

Expand All @@ -282,6 +293,7 @@ VSCROLLTORG
; ----------------------------------------------

VSCROLLTORGDB
ANDCC #$AF
RTS

; ----------------------------------------------
Expand All @@ -291,7 +303,7 @@ VSCROLLTORGDB
VSCROLLTORGORIG

ANDCC #$FE
LDA _PEN
LDA _PAPER
ANDA #$0F
ASLA
ASLA
Expand Down Expand Up @@ -324,6 +336,7 @@ VSCROLLTORG3X
BNE VSCROLLTORG4X
JMP VSCROLLTORG4
VSCROLLTORG4X
ANDCC #$AF
RTS

VSCROLLTORG0
Expand Down Expand Up @@ -371,7 +384,7 @@ VSCROLLTORGUPYSCR1
STA ,X+
CMPY <MATHPTR0
BNE VSCROLLTORGUPYSCR1
LDA #0
LDA <MATHPTR5
VSCROLLTORGUPREFILL
STA ,X+
CMPX <MATHPTR0
Expand Down Expand Up @@ -483,4 +496,5 @@ VSCROLLTORGDOWNREFILLC

VSCROLLTORGE
PULS A,B,X,Y,U
ANDCC #$AF
RTS

0 comments on commit 0c051e8

Please sign in to comment.