Interrupt 25h Absolute Disk Read(except DOS 4.0/Compaq DOS 3.31 32M partition (see next page))
entry AL drive number (0=A, 1=B, etc)
DS:BX pointer to Disk Transfer Address (buffer)
CX number of sectors to read
DX first relative sector to read
return CF 1 if error
AL error code issued to Int\24 in low half of DI
AH 80h attachment failed to respond
40h seek operation failed
20h controller failed
10h data error (bad CRC)
08h DMA failure
04h requested sector not found
03h write-protected disk
02h bad address mark
01h bad command
note Original flags on stack!
Interrupt 25h DOS 4.0/Compaq DOS 3.31 - ABSOLUTE DISK READ
(32M hard-disk partition)
entry AL drive number (0=A, 1=B, etc)
CX 0FFFFh
DS:BX Packet address
DWORD sector number
WORD number of sectors to read
DWORD transfer address
return same as above?
note Partition is potentially 32Mb (and requires this form of the call) if
bit 1 of struct -device attribute code in device\drivers -header is
set
Interrupt 25h Absolute Disk Read
Sample Code Ref PC Magazine Vol 9, No 20, Pg 498
This handy little program returns the status of any floppy disk drive as the
error level in a batch file.
DriveStat:
MOV AL,[5C] ;Get first char of command line
AND AL,5F ;Capitalize it
SUB AL,41 ;Set to 0 for A:, 1 for B:, etc
XOR CX,CX
INC CX ;Set CX to 0001 (Read one sector)
XOR DX,DX ;Set DX to 0000 (Start reading at sector zero)
MOV BX,BufAddr ;Set BC to Address of a fake buffer one sector long
INT 25 ;Call BIOSDiskReadAbs
MOV AH,4C ;Set AH to 4C (DOSTermProcWErrLvl)
INT 21 ;Call DOS
file: /Techref/int/25.htm, 2KB, , updated: 1999/2/20 11:27, local time: 2024/9/1 02:22,
18.223.195.167:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://piclist.com/Techref/int/25.htm"> int 25</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.