Hey,
I'm trying to write a generic boot sector that can be used on hard drives and floppy disks with little change. The question I have is:
Is there a way to ask BIOS which drive the boot sector was loaded from?
That way I know which drive to load the second-stage bootloader from, etc.
Thanks,
Tyrel
Determine which drive was booted?
Re:Determine which drive was booted?
Most BIOSes put the drive number in DL when they execute the boot code.
Re:Determine which drive was booted?
Oh yeah... I think I already knew that at one point. Silly brain.blip wrote: Most BIOSes put the drive number in DL when they execute the boot code.
Thanks.