views:

70

answers:

1

I'm trying to write a bootstrap loader for the fun of it, i've been using guides such as:

http://www.omninerd.com/articles/PC%5FBootstrap%5FLoader%5FProgramming%5FTutorial%5Fin%5FASM

http://hem.passagen.se/danma/nboot.htm

http://en.skelix.org/skelixos/tutorial01.php

I'm able to successfully copy over sectors from a floppy disk but when i try to access a harddisk i'm returned an error code from all int 13 functions other than reset. reset disk doesnt return an error.

Is there something special i have to do before int 13 works for hard disks?

+1  A: 

Not that I'm aware of. Have you seen http://gaztek.sourceforge.net/osdev/boot/index.html ? That has a list of examples, at least one of which claims to be reading a file from "C:\" (presumably a DOS-formatted harddisk)

MSalters