[SOLVED] int 13h/2 always fails
Posted: Wed Nov 25, 2020 3:22 am
I have been following this book, and I got to the "Reading the Disk" part, where they used int 13h with ah=2 to read sectors from the disk. However, for me it always keeps failing - the carry flag is always set to 1, and the ah register is set to 0x1, which according to this page translates to "bad command passed to driver".
I have uploaded my code here.
I'm on Windows. I am compiling my assembly code with nasm, and I run the image with VirtualBox, where the image is loaded as a floppy disk. Everything was working fine until now.
I have uploaded my code here.
I'm on Windows. I am compiling my assembly code with nasm, and I run the image with VirtualBox, where the image is loaded as a floppy disk. Everything was working fine until now.