Page 1 of 1
Problem with (I think) a BIOS interrupt...
Posted: Wed Jun 26, 2002 8:27 pm
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?
Re:Problem with (I think) a BIOS interrupt...
Posted: Wed Jun 26, 2002 10:35 pm
by Thunder
You better write that code with int 13h,
then we will see whats wrong.
NOTE: BIOS must know that interrupt realy !
Re:Problem with (I think) a BIOS interrupt...
Posted: Thu Jun 27, 2002 12:34 pm
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?
Re:Problem with (I think) a BIOS interrupt...
Posted: Thu Jun 27, 2002 1:26 pm
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.