Message board for the users of flat assembler.
> OS Construction > Boatloader...
joachim_neu 24 Dec 2003, 19:52
what has a bootloader to do??? What name has the file to have???
EDIT: Ah sorry, I haven't seen the other threat.
|24 Dec 2003, 19:52||
Bitdog 07 Feb 2004, 17:51
BOOT.BIN is a 512 byte file that sits in the first sector of a floppy drive.
(Hard drive has a boot loader, but I'll stick with floppy stuff here)
Boot.bin is handed control of the computer after BIO does it's initial post
hardware checks/setup & memory installations for some interrupts n stuff.
You never see the file boot.bin for it has no name unless you save it to a file. It just sits at the beginning of the boot disk.
has a reader and writer for floppy A:
so format a floppy disk in DOS
FORMAT /U /S A:
format drive A: Unconditionally and install the Systems files.
Makes a bootable disk. Then run BOOTREAD.COM and the file
boot.bin appears in your directory.
It's the boot loader that loads the kernel.bin which is the opperateing system
you know as command.com ?
(I'm probably wrong about all this, but it's a start for you anyway.)
You can run boot.bin through a debugger or disassembler to figgure out
what it does. There are many code examples available on the internet.
Once you write your own boot.bin & kernel.bin
you can use BOOTWRIT.COM to write it to the beginning of floppy A:
then copy in kernel.bin and boot to it. Your new
HelloWurld-OS is a contender..........
Any way, my HowdyWurld-OS first saw the light of day last week
so now I'm an expert....
|07 Feb 2004, 17:51||
mastermind 07 Feb 2004, 18:46
Here's a useful loader: http://board.flatassembler.net/topic.php?t=941.
fasm BOOTMOSF.ASM BOOT.BIN
Install: Use Bitdog's bootwrit.com program or debug.exe.
|07 Feb 2004, 18:46||
Ralph 09 Feb 2004, 23:01
Heh, yah you are pretty much all wrong. The boot sector is simply the first sector on any bootable device. What it does and how it does it is up to the developers, but usually it enables protected mode and loads the rest of the OS somehow. Here's a good example of one:
|09 Feb 2004, 23:01||
< Last Thread | Next Thread >
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.