From 836f19e834117b93bf37ba7054e065035354ecb7 Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Mon, 22 Apr 2019 03:04:15 +0930 Subject: [PATCH] correct length measurement of input line for CHRIN --- c64/kernal/chrin.s | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/c64/kernal/chrin.s b/c64/kernal/chrin.s index 6ee3daca..aceca4af 100644 --- a/c64/kernal/chrin.s +++ b/c64/kernal/chrin.s @@ -49,6 +49,8 @@ read_from_keyboard: bne not_enter jsr pop_keyboard_buffer + + jsr hide_cursor_if_visible ;; It was enter. ;; Note that we have a line of input to return, and return the first byte thereof @@ -66,10 +68,11 @@ read_from_keyboard: tay iny * dey - beq empty_line + bmi empty_line lda (current_screen_line_ptr),y cmp #$20 beq - + iny sty end_of_input_line lda #$01 sta keyboard_input_ready