Skip to content

Commit 6913096

Browse files
author
Ian Seyler
committed
Comment sections for cursor control
1 parent 59c96fe commit 6913096

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

src/monitor.asm

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,10 +1080,10 @@ ui_input_more:
10801080
call [b_input] ; Returns the character entered. 0 if there was none
10811081
jz ui_input_more ; If there was no character then halt until an interrupt is received
10821082
ui_input_process:
1083-
cmp al, 0x02
1084-
je ui_input_inc_cursor
1085-
cmp al, 0x03
1086-
je ui_input_dec_cursor
1083+
; cmp al, 0x02
1084+
; je ui_input_inc_cursor
1085+
; cmp al, 0x03
1086+
; je ui_input_dec_cursor
10871087
cmp al, 0x1C ; If Enter key pressed, finish
10881088
je ui_input_done
10891089
cmp al, 0x0E ; Backspace
@@ -1114,19 +1114,19 @@ ui_input_backspace:
11141114
dec rcx ; decrement the counter by one
11151115
jmp ui_input_more
11161116

1117-
ui_input_inc_cursor:
1118-
cmp ebx, ecx
1119-
je ui_input_more
1120-
call output_char ; Output the cursor
1121-
inc ebx
1122-
jmp ui_input_more
1117+
;ui_input_inc_cursor:
1118+
; cmp ebx, ecx
1119+
; je ui_input_more
1120+
; call output_char ; Output the cursor
1121+
; inc ebx
1122+
; jmp ui_input_more
11231123

1124-
ui_input_dec_cursor:
1125-
test ebx, ebx ; backspace at the beginning? get a new char
1126-
jz ui_input_more
1127-
call output_char ; Output the cursor
1128-
dec ebx
1129-
jmp ui_input_more
1124+
;ui_input_dec_cursor:
1125+
; test ebx, ebx ; backspace at the beginning? get a new char
1126+
; jz ui_input_more
1127+
; call output_char ; Output the cursor
1128+
; dec ebx
1129+
; jmp ui_input_more
11301130

11311131
ui_input_done:
11321132
xor al, al
@@ -1299,6 +1299,7 @@ macsep: db ':', 0
12991299
dumpsep: db ': ', 0
13001300
newline: db 10, 0
13011301
tab: db 9, 0
1302+
quote: db '"', 0
13021303
insufargs: db 'Insufficient argument(s)', 0
13031304
toomanyargs: db 'Too many arguments', 0
13041305
invalidargs: db 'Invalid argument(s)', 0

0 commit comments

Comments
 (0)