Fix copying of kernel arguments
This commit is contained in:
parent
b6972dcc69
commit
05c7e905d0
@ -207,15 +207,17 @@ main:
|
||||
mov cx, 0x007F
|
||||
mov di, arguments
|
||||
xor ax, ax
|
||||
repe scasb
|
||||
repne scasb
|
||||
dec di
|
||||
sub di, arguments
|
||||
mov cx, di
|
||||
|
||||
; setup arguments field
|
||||
mov [0x080], cl
|
||||
mov di, [0x081]
|
||||
mov di, 0x081
|
||||
mov si, arguments
|
||||
rep movsb
|
||||
mov BYTE [di], 0x0D
|
||||
|
||||
; setup int 19h call at 0000, and push its address to stack
|
||||
mov WORD [0000], 0x19CD
|
||||
|
Loading…
Reference in New Issue
Block a user