I want fetch the parameters of my hard disk. Using the technique described here.
-
This is code showing normal parameters of floppy disk:
mov dl,00h mov ah,08h int 13h -
This is code, showing not valid parameters of hard disk (may be, my hard disk space is big (LBA)):
mov dl,80h mov ah,08h int 13h -
And I’ve written this code:
mov dl,80h mov ah,48h int 13h
The code is giving cf = 1(error). How do I fix it?
On error,
AHshould contain the error code. What was it?Ralf Brown’s (excellent) interrupt list details them:
You also don’t specify what your
DS:SIis set to to recive the information. Has that been set correctly?From your comment:
Check to see if the INT13 extensions are available for your BIOS. AH = 41h, DL = 80h (first drive), BX = 55AAh, INT13, carry will be clear on return if extensions are there.