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:
|
error:
|
||||||
db "Unknown command", 0x0
|
db "Unknown command", 0x0
|
||||||
|
|
||||||
;buffer:
|
|
||||||
;times 0x100 db 0
|
|
||||||
|
|
||||||
buffer:
|
buffer:
|
||||||
times 0x100 db 0
|
times 0xff db 0
|
||||||
|
|
|
@ -38,7 +38,9 @@ cmp al, 0x8
|
||||||
je .backspace
|
je .backspace
|
||||||
|
|
||||||
;Check for input end
|
;Check for input end
|
||||||
cmp bl, [.length]
|
mov cl, bl
|
||||||
|
inc cl
|
||||||
|
cmp cl, [.length]
|
||||||
je .loop
|
je .loop
|
||||||
|
|
||||||
;Check for space
|
;Check for space
|
||||||
|
|
Loading…
Reference in New Issue