flat assembler
Message board for the users of flat assembler.
![]() |
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 ![]() ![]() ![]() ![]() ![]()
Last edited by calpol2004 on 11 Mar 2006, 16:50; edited 2 times in total |
|||||||||||
![]() |
|
Borsuc 11 Mar 2006, 16:47
Have you tried Bona Fide. They got some nice tutorials
![]() |
|||
![]() |
|
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 Also you need to do some reading on how OS like linux boot ![]() http://www.control-escape.com/linux/bootload.html |
|||
![]() |
|
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. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.