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
/
HDINIT.DIF
< prev
next >
Wrap
Text File
|
1987-06-20
|
1KB
|
50 lines
----------HDINIT.OLD
EXTRN HREAD:NEAR, HWRITE:NEAR, HWRITEV:NEAR
EXTRN HFORMAT:NEAR, HINIT:NEAR, HMCHK:NEAR
----------HDINIT.ASM
EXTRN HREAD_PHYS:NEAR, HWRITE_PHYS:NEAR ;RGT
EXTRN HFORMAT:NEAR, HINIT:NEAR, HMCHK:NEAR
-----------------------------------------------
----------HDINIT.OLD
AND AL,AL ;Check if cluster size is specified
----------HDINIT.ASM
LODSW ;Get extra word in table ;RGT
AND AL,AL ;Check if cluster size is specified
-----------------------------------------------
----------HDINIT.OLD
CALL HREAD ;Read sector from hard disk
MOV AL,1 ;Assume hard error
----------HDINIT.ASM
CALL HREAD_PHYS ;Read sector from hard disk ;RGT
MOV AL,1 ;Assume hard error
-----------------------------------------------
----------HDINIT.OLD
CALL HWRITE ;Update bad bit on disk
POP CX ;Restore saved write parameters
----------HDINIT.ASM
CALL HWRITE_PHYS ;Update bad bit on disk ;RGT
POP CX ;Restore saved write parameters
-----------------------------------------------
----------HDINIT.OLD
JMP HWRITE ;Update the bad bit and return
;
----------HDINIT.ASM
JMP HWRITE_PHYS ;Update the bad bit and return ;RGT
;
-----------------------------------------------