We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4ded2c commit 30552a4Copy full SHA for 30552a4
src/syscalls/io.asm
@@ -44,6 +44,8 @@ b_output_serial:
44
45
b_output_serial_next:
46
lodsb ; Load a byte from the string into AL
47
+ cmp al, 3 ; Check for Decrement cursor
48
+ je b_output_serial_decrement
49
cmp al, 10 ; Check for Line Feed
50
jne b_output_serial_send
51
mov al, 13 ; Carriage Return
@@ -58,6 +60,11 @@ b_output_serial_send:
58
60
pop rcx
59
61
pop rsi
62
ret
63
+
64
+b_output_serial_decrement:
65
+ mov al, 8 ; Backspace
66
+ jmp b_output_serial_send
67
68
; -----------------------------------------------------------------------------
69
70
0 commit comments