Page 1 of 1

help loader

Posted: Thu Jun 27, 2002 11:00 pm
by bpc
help i need a loader to load programs and i also need to code a command promt

RE:help loader

Posted: Fri Jun 28, 2002 11:00 pm
by Khumba
Okay, so you want a bootloader which will init your OS, and load a command prompt? The command prompt is pretty simple to do, write a getstr function (I'll give you one if you want) and then have a cmpstr function compare the entered string with all the possible commands, and if they match, make a jmp to a handler.

For the bootloader, first you need to get a file system on the floppy (if a floppy's what you're using). http://www.nondot.org/sabre/os/articles has lots of info about file systems. Then, in your boot loader, have it search through your file system to look for the command prompt. If the loader finds it, load it and jmp to it. Hope this helps.