Boot sector
Posted: Wed Oct 22, 2003 11:00 pm
Ok, i have finally managed to get my OS to compile (yay) but im unsure on what i do with the boot sector. Do i still just link everything to one file or does the bootsector have to be an individual file and not linked. Heres my file structure to help.
Boot.asm (bootloader)
Init.asm (kernel jump + memory functions)
Kernel.c (main kernel with custom libraries)
when compiling my kernel in nasm i can only use bin format which screws the link, any other and it throws an error: "error: parser: instruction expected" on line 11 (line 11 including comments: "ORG [0x7C00]"
line 11 withou comments: "resetFloppy:"
and im totally lost with it :S
thanks in advance....
Boot.asm (bootloader)
Init.asm (kernel jump + memory functions)
Kernel.c (main kernel with custom libraries)
when compiling my kernel in nasm i can only use bin format which screws the link, any other and it throws an error: "error: parser: instruction expected" on line 11 (line 11 including comments: "ORG [0x7C00]"
line 11 withou comments: "resetFloppy:"
and im totally lost with it :S
thanks in advance....