INT 13h problem can't progress
Posted: Sun Jan 06, 2008 7:27 pm
I decided to use the bios int 13h call instead of my floppy driver to read my flkoppy (for now an image, will be a real floppy and a cd usb fob when things will work), it doesn't work
I get some strange values and I don't know if im calling the INT correctly, and now Im doubting I don't even know if my vm86 is correct anymore
Switching to and from some vga mode was correct, but I tried to read some sector with ((uchar*)&ax)[0] = 1; ((uchar*)&ax)[1] = 2; things like that.
What's the correct way in C to set some variables to call interrupt 13h?
Im confused with the register cx in particular, where I need to put the cylinder in the upper 8 bits and the 2 bits 0x300 from cylinder in 0xc0?
I get some strange values and I don't know if im calling the INT correctly, and now Im doubting I don't even know if my vm86 is correct anymore
Switching to and from some vga mode was correct, but I tried to read some sector with ((uchar*)&ax)[0] = 1; ((uchar*)&ax)[1] = 2; things like that.
What's the correct way in C to set some variables to call interrupt 13h?
Im confused with the register cx in particular, where I need to put the cylinder in the upper 8 bits and the 2 bits 0x300 from cylinder in 0xc0?