help loader

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
bpc

help loader

Post by bpc »

help i need a loader to load programs and i also need to code a command promt
Khumba

RE:help loader

Post 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.
Post Reply