started work on VIC-IV cursor
This commit is contained in:
1 parent
ad22140617
commit
511a30715f
10 files changed
+175
-24
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user