mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +00:00
Move cursor IRQ processing to when the screen is being drawn
This commit is contained in:
parent
d2e8f7bc90
commit
249a04dbde
@ -28,6 +28,7 @@
|
|||||||
.interruptor mono_blink_cursor
|
.interruptor mono_blink_cursor
|
||||||
|
|
||||||
.importzp sp
|
.importzp sp
|
||||||
|
.import _zonecounter
|
||||||
.import _mono_zones
|
.import _mono_zones
|
||||||
.import cursor
|
.import cursor
|
||||||
.import pusha, incsp1, pusha0, pushax, popa
|
.import pusha, incsp1, pusha0, pushax, popa
|
||||||
@ -175,6 +176,9 @@ umula0:
|
|||||||
; Offset to cursor zone 5.
|
; Offset to cursor zone 5.
|
||||||
;
|
;
|
||||||
.proc mono_blink_cursor
|
.proc mono_blink_cursor
|
||||||
|
lda _zonecounter
|
||||||
|
and #01
|
||||||
|
beq @L3
|
||||||
inc blink_time
|
inc blink_time
|
||||||
bne @L3
|
bne @L3
|
||||||
lda #140
|
lda #140
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
.interruptor blink_cursor
|
.interruptor blink_cursor
|
||||||
|
|
||||||
.importzp sp
|
.importzp sp
|
||||||
|
.import _zonecounter
|
||||||
.import _zones
|
.import _zones
|
||||||
.import cursor
|
.import cursor
|
||||||
.import pusha, incsp1, pusha0, pushax, popa
|
.import pusha, incsp1, pusha0, pushax, popa
|
||||||
@ -177,6 +178,9 @@ umula0:
|
|||||||
; Offset to cursor zone 5.
|
; Offset to cursor zone 5.
|
||||||
;
|
;
|
||||||
.proc blink_cursor
|
.proc blink_cursor
|
||||||
|
lda _zonecounter
|
||||||
|
and #01
|
||||||
|
beq @L3
|
||||||
inc blink_time
|
inc blink_time
|
||||||
bne @L3
|
bne @L3
|
||||||
lda #140
|
lda #140
|
||||||
|
Loading…
Reference in New Issue
Block a user