I tried to get information about a diskdrive using
the "Get Current Drive Parameters Interrupt", this is the
code I executed using Debug:
Now this code should have returned information inCode:MOV AH,08 MOV DL,00 INT 13 RET
the register and in memory at address ES:BX.
There is no information in the registers however.
This program below should read one sector from
a disk and dump it into the video memory at B800:0.
I ran this program using Debug as well.
It uses the "Read Disk Sectors" interrupt.
Except for the diskdrive becoming active forCode:MOV AH,02 MOV AL,01 Number of sectors to read. MOV CH,00 Track. MOV CL,01 Sector. MOV DH,00 Head. MOV DL,00 Drive to access. MOV BX,B800 MOV ES,BX MOV BX,0000 INT 13 RET
a second (you can see the drive status light turn on)
Nothing seems to happen.
Did I do something wrong in the programs above and
if so what?
Debug by the way was started from Dos Mode in Windows 95
so it couldn't be Windows interfering.
The programs are based on information from Help Pc 2.10
by David Jurgens.




Reply With Quote