如何测试软硬盘驱动器参数(5)
2015-06-23 01:00
导读:shrdh,cl incdx;getcylinder pushdx;savecylinder pushax;saveheadsector mulah;computeFdisksize muldx movcx,11 Loop-shift: shrdx,1 rcrax,1 loopLoop-shift;GetFdisksize popdx;sectorsheads popcx;cylindercoun
shr dh,cl
inc dx ;get cylinder
push dx ;save cylinder
push ax ;save head & sector
mul ah ;compute Fdisk size
mul dx
mov cx,11
Loop-shift:
shr dx,1
rcr ax,1
loop Loop-shift ;Get Fdisk size
pop dx ;sectors & heads
pop cx ;cylinder counter
clc ;clear CF flag
Get-FdiskExit:
retn
Get-FdiskParamendp
Partition-area db 512 dup(0) ;read Partition buffer