home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.update.uu.se
/
ftp.update.uu.se.2014.03.zip
/
ftp.update.uu.se
/
pub
/
rainbow
/
msdos
/
latrobe
/
b
/
biodif.arc
/
HDIOCTL.DIF
< prev
next >
Wrap
Text File
|
1987-06-20
|
2KB
|
76 lines
----------HDIOCTL.OLD
EXTRN HREAD:NEAR, HWRITE:NEAR, HWRITEV:NEAR
EXTRN HFORMAT:NEAR, HINIT:NEAR, HMCHK:NEAR
----------HDIOCTL.ASM
EXTRN HREAD_PHYS:NEAR, HWRITE_PHYS:NEAR, HWRITEV_PHYS:NEAR ;RGT
EXTRN HFORMAT:NEAR, HINIT:NEAR, HMCHK:NEAR
-----------------------------------------------
----------HDIOCTL.OLD
;
----------HDIOCTL.ASM
; ;RGT
; Define the calls to the disk cache routines ;RGT
; ;RGT
EXTRN INVALIDATE_HARD_DISK_CACHE:NEAR ;Routine to invalidate ;RGT
;hard disk in cache ;RGT
EXTRN CACHE_IOCTL:NEAR ;Cache I/O ctl routines ;RGT
;
-----------------------------------------------
----------HDIOCTL.OLD
CALL GET_REG ;Get all information
CMP AH,0FFH ;Check logical or physical operation
----------HDIOCTL.ASM
CALL INVALIDATE_HARD_DISK_CACHE ;Invalidate hard disk ;RGT
;in disk cache ;RGT
CALL GET_REG ;Get all information
; ;RGT
; If this is call to install the cache routines, then do it ;RGT
; ;RGT
CMP AL,10 ;See if function to install cache;RGT
JNE HIOCTL_010 ;If not, just do function ;RGT
; ;RGT
; Function is to do disk cache control. ;RGT
; Call cache control to do it. ;RGT
; ;RGT
CALL CACHE_IOCTL ;Do cache control ;RGT
RET ;And return to caller ;RGT
; ;RGT
; Not call to install cache routines -- do regular disk function ;RGT
; ;RGT
HIOCTL_010: ;RGT
CMP AH,0FFH ;Check logical or physical operation
-----------------------------------------------
----------HDIOCTL.OLD
; Hard disk driver willno do the hard work for the floppy
;
----------HDIOCTL.ASM
; Hard disk driver will not do the hard work for the floppy
;
-----------------------------------------------
----------HDIOCTL.OLD
W_DISKF DW HREAD ;Read hard disk
DW HWRITE ;Write hard disk
DW HWRITEV ;Write with verify hard disk
DW HFORMAT ;Format hard disk tracks
----------HDIOCTL.ASM
W_DISKF DW HREAD_PHYS ;Read hard disk ;RGT
DW HWRITE_PHYS ;Write hard disk ;RGT
DW HWRITEV_PHYS ;Write with verify hard disk ;RGT
DW HFORMAT ;Format hard disk tracks
-----------------------------------------------