hi all, i have everything setup to run programs but i don't know where to put them, i used to just put it after my kernel in my floppy image (bootsect.bin, kernel.sys, testprog.bin) but my .bss overwrites this program at runtime, any ideas on how to get a program to memory ( my FLOPPY + FAT drivers are not very good yet so i don't trust them )
p.s. i don't use GRUB ( yet ) any help switching to GRUB also welcome...
how to run test programs
If you *want* to switch to GRUB, your kernel just needs to start with a small Multiboot header. The header contains a magic number, some requested features flags, and a bit else. Then you just compile the kernel to a GRUB-supported binary format like ELF, and let GRUB load it. When it does, it will pass your kernel entry-point a magic Multiboot number and a pointer to a structure containing boot information for the kernel.
Since GRUB can also load modules into physical memory for you, I highly recommend it.
Since GRUB can also load modules into physical memory for you, I highly recommend it.