Somebody new
Posted: Sun Jul 27, 2003 11:00 pm
hello there. Ive recently got into OS development, and looked at Fritz os on bona-fide which btw i think is the best place for a newbie to start.
My problem is, on the bootsector. How much do i have to load?
Quite simply i have the bootloader, which launches the preloading kenel (ASM) which refers to the main kernel written in C once this is done im in PMode. The question is, in the bootsector do i have to load the entire size of the kernel (Including header files) before doing the int 0x13 or can i load just the primary C file. And then leave asm good an proper (as i'll be happy once im once ive solved all the asm troubles).
The next question is, when compiling on gcc, how would i go about including MY written headers (not the inbuilt ones), would gcc simply look relative to the kernel.c file and then compile the headers too.
Last one, does anyone know a good routine for performing a scanf in C (for my custom stdio.h header) ive got a working printf (with %d and %s etc.) but i expect a scanf to be harder.
Thanks very much in advance.
My problem is, on the bootsector. How much do i have to load?
Quite simply i have the bootloader, which launches the preloading kenel (ASM) which refers to the main kernel written in C once this is done im in PMode. The question is, in the bootsector do i have to load the entire size of the kernel (Including header files) before doing the int 0x13 or can i load just the primary C file. And then leave asm good an proper (as i'll be happy once im once ive solved all the asm troubles).
The next question is, when compiling on gcc, how would i go about including MY written headers (not the inbuilt ones), would gcc simply look relative to the kernel.c file and then compile the headers too.
Last one, does anyone know a good routine for performing a scanf in C (for my custom stdio.h header) ive got a working printf (with %d and %s etc.) but i expect a scanf to be harder.
Thanks very much in advance.