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
Boot Strap Help Please
RE:Boot Strap Help Please
please see the reply i gave to user root and i am sysprogrammer.
thanks
thanks
RE:Boot Strap Help Please
please see the reply i gave to user 'root' and i am 'sysprogrammer'.
thanks
thanks
RE:Boot Strap Help Please
Actually, you just whack the reset button, this is one of the tasks that the BIOS performs for you.
Lucas
Lucas
RE:Boot Strap Help Please
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>
BonaFide is at <a href="http://www.osdever.net">www.osdever.net</a>
RE:Boot Strap Help Please
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
http://www-2.cs.cmu.edu/afs/cs/user/ral ... files.html
RE:Boot Strap Help Please
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.