04-30-2012, 09:13 PM
I actually think it has something to do with this little bit of source from your string.asm included in your kernel.
Perhaps your strings aren't properly parsing? Check the loops again, maybe something's bugging out here.
Perhaps your strings aren't properly parsing? Check the loops again, maybe something's bugging out here.
Code:
os_string_parse:
push si
mov ax, si
mov bx, 0
mov cx, 0
mov dx, 0
push ax
.loop1:
lodsb
cmp al, 0
je .finish
cmp al, ' '
jne .loop1
dec si
mov byte [si], 0
inc si
mov bx, si
.loop2:
lodsb
cmp al, 0
je .finish
cmp al, ' '
jne .loop2
dec si
mov byte [si], 0
inc si
mov cx, si
.loop3:
lodsb
cmp al, 0
je .finish
cmp al, ' '
jne .loop3
dec si
mov byte [si], 0
inc si
mov dx, si
.finish:
pop ax
pop si
ret