INT 13h problem can't progress

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
jerryleecooper
Member
Member
Posts: 233
Joined: Mon Aug 06, 2007 6:32 pm
Location: Canada

INT 13h problem can't progress

Post by jerryleecooper »

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 :cry:
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 :cry: :cry: :cry:
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?
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: INT 13h problem can't progress

Post by jal »

jerryleecooper wrote: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?
See here. I can't respond to any other questions, as I have no clue what you mean.


JAL
User avatar
jerryleecooper
Member
Member
Posts: 233
Joined: Mon Aug 06, 2007 6:32 pm
Location: Canada

Post by jerryleecooper »

Thank you dor the link. My source for the INT 13h was wikipedia, not a good source for that.
So now I think I understand, my bootloader works because when theres an error in int 13 it tries again, which is not the case in my vm86 trickery.
I will try that.
Post Reply