implement home key
This commit is contained in:
1 parent
d283c3243d
commit
0add45b798
1 file changed
+10
-2
+10
-2
@@ -38,8 +38,6 @@ not_0a:
|
|||||||
not_0d:
|
not_0d:
|
||||||
|
|
||||||
;; Check for cursor movement keys
|
;; Check for cursor movement keys
|
||||||
sta $0400
|
|
||||||
|
|
||||||
cmp #$11
|
cmp #$11
|
||||||
bne not_11
|
bne not_11
|
||||||
inc current_screen_y
|
inc current_screen_y
|
||||||
@@ -93,6 +91,16 @@ delete_non_zero_column:
|
|||||||
|
|
||||||
not_14:
|
not_14:
|
||||||
|
|
||||||
|
;; Home cursor
|
||||||
|
cmp #$13
|
||||||
|
bne not_13
|
||||||
|
lda #0
|
||||||
|
sta current_screen_x
|
||||||
|
sta current_screen_y
|
||||||
|
jsr calculate_screen_line_pointer
|
||||||
|
jmp chrout_done
|
||||||
|
not_13:
|
||||||
|
|
||||||
;; Clear screen
|
;; Clear screen
|
||||||
cmp #$93
|
cmp #$93
|
||||||
bne not_clearscreen
|
bne not_clearscreen
|
||||||
|
|||||||
Reference in new issue
Block a user