Hello
Code: Select all
mov di,kern_filename
mov al,'T'
stosb
mov al,'B'
stosb
mov al,'O'
stosb
mov al,'S'
stosb
mov al,'K'
stosb
mov al,'R'
stosb
mov al,'N'
stosb
mov al,'L'
stosb
mov al,'S'
stosb
mov al,'Y'
stosb
mov al,'S'
stosb ; Kernel name is "TBOSKRNLSYS"
ouch, someone needs an assembly school methinks

rep movsb is your friend, will turn that into like 4 lines
also you say its 186, nasm may allow that because the instructions are 186, however you use 32-bit (eax) and 386 regs (gs, fs) in your OS so it may crash on a real 186!
For CLI would be better to have a string parser to get options, this is a bit of a kludge....
Code: Select all
cmd_man db "man",0
cmd_man_ops db "man ",0
cmd_man_man db "man man",0
cmd_man_hash db "man hash",0
cmd_man_uname db "man uname",0
cmd_man_mode db "man mode",0
also what does this mean at the bottom of tbosload.asm?
Code: Select all
buffer: ; Disk buffer begins (8k after this, stack starts)
- KK