Fix cmdline setup in fatvbr
This commit is contained in:
parent
e143159a7a
commit
bfb5b227b6
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user