started work on VIC-IV cursor

This commit is contained in:
FeralChild64 committed 2020-08-23 20:28:06 +02:00
1 parent ad22140617
commit 511a30715f
10 files changed
+175 -24

No files matched your search

+9 -3
View File
@@ -17,6 +17,7 @@
cursor_blink:
// Is the cursor enabled?
lda BLNSW
bne cursor_blink_end
@@ -50,26 +51,31 @@ cursor_draw:
bne cursor_blink_timer_reset // branches always
cursor_disable:
lda #$80
sta BLNSW
// FALLTHROUGH
cursor_hide_if_visible:
lda BLNON
beq cursor_blink_end
// FALLTROUGH
cursor_undraw:
// Prevent interrupts from updating cursor
lda #0
sta BLNON
jsr screen_get_clipped_PNTR
lda GDBLN
sta (PNT),y
lda GDCOL
sta (USER),y
lda #0
sta BLNON
// FALLTROUGH
cursor_blink_timer_reset: