From 2070b428ed18888871c10471c4c39084a05ffa24 Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Mon, 22 Apr 2019 20:54:14 +0930 Subject: [PATCH] make sure screen pointers are initialiased before messing with the cursor --- c64/kernal/blink_cursor.s | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/c64/kernal/blink_cursor.s b/c64/kernal/blink_cursor.s index 47aaa51f..1a2c240f 100644 --- a/c64/kernal/blink_cursor.s +++ b/c64/kernal/blink_cursor.s @@ -36,6 +36,8 @@ blink_cursor: lda cursor_is_visible bne undraw_cursor draw_cursor: + jsr calculate_screen_line_pointer + ldy current_screen_x lda (current_screen_line_ptr),y sta cursor_saved_character @@ -52,6 +54,8 @@ draw_cursor: jmp reset_blink_timer undraw_cursor: + jsr calculate_screen_line_pointer + lda cursor_saved_character ldy current_screen_x sta (current_screen_line_ptr),y