Include the string-ending null for maximum length strings within the string length.
This commit is contained in:
parent
adefdf3e4c
commit
843c018510
|
@ -106,8 +106,5 @@ db "keycode", 0x0
|
|||
error:
|
||||
db "Unknown command", 0x0
|
||||
|
||||
;buffer:
|
||||
;times 0x100 db 0
|
||||
|
||||
buffer:
|
||||
times 0x100 db 0
|
||||
times 0xff db 0
|
||||
|
|
|
@ -38,7 +38,9 @@ cmp al, 0x8
|
|||
je .backspace
|
||||
|
||||
;Check for input end
|
||||
cmp bl, [.length]
|
||||
mov cl, bl
|
||||
inc cl
|
||||
cmp cl, [.length]
|
||||
je .loop
|
||||
|
||||
;Check for space
|
||||
|
|
Loading…
Reference in New Issue