flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Switch to Protected Then Load Kernel from floppy. |
Author |
|
calpol2004 11 Mar 2006, 16:42
does anyone have any example bootloaders that enter protected mode then load the kernel from a floppy with a FAT12 file-system. i've been trying with an example which i have attached (just to give you an idea to what im looking for) but the syntax is too distant from FASM for me (just got hang of porting from MASM), but im making a complete mess of it. i have looked also at the BOS boot sector although everything is in 16bit which will make switching to pmode in the bootsector a general pain...unless of course i do it later in the kernel but i may as well get it over and done with in the bootloader. and once i've gone into to protected mode i don't really want to switching back into to real mode all the time as your code just ends up looking like mud. if any of you have got any examples which do as i've descibed could you attach them? or maybe you've got a link to a website which may give me more information, would you mind posting that?
im currently waiting for all my books on OS dev from amazon but they are taking ages ! i've got some book on concepts which basically teaches me loads of theory and some useful algorithms .etc but not much actual code . and another book on MSDOS to which has an extensive library of interrupts many of which are BIOS. however until the rest come i've got very little reference on how to implement a bootloader . i could use bootprog but i may as well make a MS-DOS application and autoexec batch it at startup as its practically the same thing , and considering i want to create a OS not a Sub-OS this would not suit my needs (that means you Dex4u, if you suggest bootprog one more time in this forum i will scream )
Last edited by calpol2004 on 11 Mar 2006, 16:50; edited 2 times in total |
|||||||||||
11 Mar 2006, 16:42 |
|
Borsuc 11 Mar 2006, 16:47
Have you tried Bona Fide. They got some nice tutorials
|
|||
11 Mar 2006, 16:47 |
|
Dex4u 11 Mar 2006, 18:21
calpol2004 wrote: i could use bootprog but i may as well make a MS-DOS application and autoexec batch it at startup as its practically the same thing , and considering i want to create a OS not a Sub-OS this would not suit my needs (that means you Dex4u, if you suggest bootprog one more time in this forum i will scream ) Also you need to do some reading on how OS like linux boot http://www.control-escape.com/linux/bootload.html |
|||
11 Mar 2006, 18:21 |
|
Octavio 12 Mar 2006, 12:02
calpol2004 wrote: does anyone have any example bootloaders that enter protected mode then load the kernel from a floppy with a FAT12 file-system. perhaps it exists, but is very dificult to put all this on just 512 bytes, the usual solution is to use a second stage loader (like GRUB), but for a asm programmer it should be easy to load the kernel in real mode ,and allow the kernel to switch to protected mode, most assemblers will let you to mix 16bit realmode with 32bit pm code and most asm OS work like this. If you are a C programmer better use something like GRUB. |
|||
12 Mar 2006, 12:02 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.