Boot Strap Help Please

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
deus_the_programmer

Boot Strap Help Please

Post by deus_the_programmer »

Hi can someone help /supply some code to read a boot sector from either floppy or read the hard disk mbr and jump to it.

ie a com file that reads the hard disk mbr and starts execting it.
many thanks

edwin
sysprogrammer

RE:Boot Strap Help Please

Post by sysprogrammer »

please see the reply i gave to user root and i am sysprogrammer.
thanks
sysprogrammer

RE:Boot Strap Help Please

Post by sysprogrammer »

please see the reply i gave to user 'root' and i am 'sysprogrammer'.
thanks
ltos

RE:Boot Strap Help Please

Post by ltos »

Actually, you just whack the reset button, this is one of the tasks that the BIOS performs for you.

Lucas
dumbass101

RE:Boot Strap Help Please

Post by dumbass101 »

U need help with ur Jock Strap?
Rambo

RE:Boot Strap Help Please

Post by Rambo »

Ehhh, are you insane? All I can do is direct you to BonaFide's forums. Don't ask this there, but look through the tutorials and try to do this yourself. In particular check the "What's wrong with my GDT" topic under "Getting started". In one of the last posts there is a working bootsector (it doesn't load from the floppy, it just runs and prints a 'P').

BonaFide is at <a href="http://www.osdever.net">www.osdever.net</a>
rexlunae

RE:Boot Strap Help Please

Post by rexlunae »

Well, assuming you are in real mode, which I assume is likely if you are using a com file, you can just use the BIOS.  Figure out which drive you want to load the boot sector from, and load the first sector to physical address 0x7c00, then jump to it.  For information on using the BIOS, try Ralph Brown's files found here:

http://www-2.cs.cmu.edu/afs/cs/user/ral ... files.html
rexlunae

RE:Boot Strap Help Please

Post by rexlunae »

Given that he mentions that he is using a com file, he is probably talking about doing this from dos, and then he is probably in real mode, so information about the GDT is not relevent to him, nor are working examples of boot sectors likely to be useful.
Post Reply