Problem with (I think) a BIOS interrupt...

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
f2

Problem with (I think) a BIOS interrupt...

Post by f2 »

I use a BIOS interrupt (0x13) that reads a sector off of a disk (in my case, a floppy) and loads that sector at a given address. Anyway, this works on all computers, except my one computer. And what I'm thinking is that this BIOS interrupt (0x13) isn't "known" or something to my BIOS. So, the computer just doesn't continue with execution on the code. I don't understand what is wrong. What is the problem? How can I fix it?
Thunder

Re:Problem with (I think) a BIOS interrupt...

Post by Thunder »

You better write that code with int 13h,
then we will see whats wrong.

NOTE: BIOS must know that interrupt realy !
f2

Re:Problem with (I think) a BIOS interrupt...

Post by f2 »

Yes, I know BIOS knows this interrupt. And, I simply just call it. But, it doesn't work on my one computer (it works on many, many others). So, what could make THIS computer different from the others?
crazybuddha

Re:Problem with (I think) a BIOS interrupt...

Post by crazybuddha »

try use INT 0x13 to read the status of the drive and displaying the result. I suggest doing it is a stripped down piece of code, only as much as you need to do this one thing.

ah = 0x01 ; read disk system status
dl = 0x00 ; # of the drive 0x00 is floppy A:

result is returned in AH

0x00 is no error. Anything else is a problem.

Also the read sector instruction (AH = 0x02) itself sets the carry flag if something went wrong and returns the number of sectors read in AL.
Post Reply