From 085510f3c873c2699b3b46d300252114921bbe81 Mon Sep 17 00:00:00 2001 From: Carlos Fenollosa Date: Wed, 8 Oct 2014 21:05:36 +0200 Subject: [PATCH] lesson 7, reading from disk --- 07-bootsector-disk/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/07-bootsector-disk/README.md b/07-bootsector-disk/README.md index 14dd202..76f000d 100644 --- a/07-bootsector-disk/README.md +++ b/07-bootsector-disk/README.md @@ -53,6 +53,11 @@ is booting from the right drive and set the drive on `dl` accordingly** The BIOS sets `dl` to the drive number before calling the bootloader. However, I found some problems with qemu then booting from the hdd. -Try the flag `-fda` for example, `qemu -fda boot_sect_main.bin` which will set `dl` +There are two quick options: + +1. Try the flag `-fda` for example, `qemu -fda boot_sect_main.bin` which will set `dl` as `0x00`, it seems to work fine then. +2. Explicitly use the flag `-boot`, e.g. `qemu boot_sect_main.bin -boot c` which +automatically sets `dl` as `0x80` and lets the bootloader read data +