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.
Umm.. A little question for all of you..
How can I load a program into a memory and execute it?
In NASM.
I have some code for it but it keeps messing up my print functions..
Last edited by mySilence on Sat Dec 11, 2004 12:00 am, edited 1 time in total.
I meant that how could kernel execute an another binary file from the disk.
So the OS would work like this:
BOOT -------> KERNEL.BIN <-------> PROG.BIN
you need to write
1. floppy/hard disk driver
2. File system
3. file loader
use driver to pass sectors requested from the file system. The file system takes a file path name, parses it, finds the entry for the file name and the needed sectors, allocates memory for the file, requests the sectors to be read from the driver (floppy/hard disk). Once sectors are loaded, jump to the address where the file is loaded (or start a new process with the mem address)
This is a ROUGH summary but should give you the needed ideas
Last edited by slasher on Tue Feb 27, 2007 7:51 pm, edited 1 time in total.