Fix cmdline setup in fatvbr

This commit is contained in:
Nero 2019-09-15 17:51:44 +00:00
parent e143159a7a
commit bfb5b227b6

View File

@ -273,9 +273,18 @@ parse_cmdline:
.args_start: .args_start:
mov di, (psp + 0x81) mov di, (psp + 0x81)
.args_loop: .args_loop:
call .read lodsb
test al, al
jz .args_end
stosb stosb
jmp .args_loop jmp .args_loop
.args_end:
mov ax, di
sub ax, (psp + 0x81)
mov [psp+0x80], al
mov al, 0x0D
stosb
ret
.read: .read:
lodsb lodsb
test al, al test al, al
@ -285,7 +294,7 @@ parse_cmdline:
ret ret
cmdline: cmdline:
db "KERNEL.COM /?", 0 db CMDLINE, 0
times (0x1FE - ($-$$)) db 0 times (0x1FE - ($-$$)) db 0