It seems I'm making a habit of posting a topic for every tutorial I read .
I have some questions for bootloader 3, could you guys help out?
1. I am trying out the demo for bootloader 3. I typed the code and try to compile to NASM, but I got an error because there are 2 [ORG] directive in the same ASM file. How else I can specify the second sector to be loaded at 0x1000 without the org directive?
2.
Code: Select all
mov ah, 0x02 ; read floppy sector function
mov al, 1 ; read 1 sector
mov ch, 1 ; we are reading the second sector past us, so its still on track 1
mov cl, 2 ; sector to read (The second sector)
mov dh, 0 ; head number
mov dl, 0 ; drive number. Remember Drive 0 is floppy drive.
int 0x13 ; call BIOS - Read the sector
Thanks