Skip to content

Commit 7ae04ad

Browse files
Fixed filling color and irq management for ef936x scrolling.
1 parent e179d85 commit 7ae04ad

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

ugbc/src/hw/ef936x/vscroll_text.asm

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
;* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3737

3838
VSCROLLT
39+
40+
ORCC #$50
41+
3942
LDA CONSOLEX1
4043
BNE VSCROLLTNEW
4144
LDA CONSOLEY1
@@ -61,6 +64,9 @@ VSCROLLTNEW
6164
; ----------------------------------------------
6265

6366
VSCROLLTNEWDB
67+
68+
ANDCC #$AF
69+
6470
RTS
6571

6672
; ----------------------------------------------
@@ -103,6 +109,9 @@ VSCROLLTNEW3X
103109
BNE VSCROLLTNEW4X
104110
JMP VSCROLLTNEW4
105111
VSCROLLTNEW4X
112+
113+
ANDCC #$AF
114+
106115
RTS
107116

108117
VSCROLLTNEW0
@@ -259,6 +268,7 @@ VSCROLLTNEWDOWN
259268

260269
VSCROLLTNEWE
261270
PULS A,B,X,Y,U
271+
ANDCC #$AF
262272
RTS
263273

264274
; -------------------------------
@@ -268,6 +278,7 @@ VSCROLLTORG
268278
PSHS D
269279
LDD BITMAPADDRESS
270280
ADDD CURRENTFRAMESIZE
281+
SUBB CURRENTSL
271282
STD <MATHPTR0
272283
PULS D
273284

@@ -282,6 +293,7 @@ VSCROLLTORG
282293
; ----------------------------------------------
283294

284295
VSCROLLTORGDB
296+
ANDCC #$AF
285297
RTS
286298

287299
; ----------------------------------------------
@@ -291,7 +303,7 @@ VSCROLLTORGDB
291303
VSCROLLTORGORIG
292304

293305
ANDCC #$FE
294-
LDA _PEN
306+
LDA _PAPER
295307
ANDA #$0F
296308
ASLA
297309
ASLA
@@ -324,6 +336,7 @@ VSCROLLTORG3X
324336
BNE VSCROLLTORG4X
325337
JMP VSCROLLTORG4
326338
VSCROLLTORG4X
339+
ANDCC #$AF
327340
RTS
328341

329342
VSCROLLTORG0
@@ -371,7 +384,7 @@ VSCROLLTORGUPYSCR1
371384
STA ,X+
372385
CMPY <MATHPTR0
373386
BNE VSCROLLTORGUPYSCR1
374-
LDA #0
387+
LDA <MATHPTR5
375388
VSCROLLTORGUPREFILL
376389
STA ,X+
377390
CMPX <MATHPTR0
@@ -483,4 +496,5 @@ VSCROLLTORGDOWNREFILLC
483496

484497
VSCROLLTORGE
485498
PULS A,B,X,Y,U
499+
ANDCC #$AF
486500
RTS

0 commit comments

Comments
 (0)