|
格式化"轨迹0坏"软
这一计划是用于那些floppies格式有坏道的轨道0时都是以格式化或民政视窗、 显示错误讯息,如"轨迹0不好". 但是你也可以用它来格式正常floppies.
编码的节目已经在磁盘上的名字列入本书"ttformat.c". 工作程序是一样的逻辑节目出版pcquest电脑杂志2003年2版.
在这个节目里,我们设法使这种floppies重用的格式化. 听你的节目可以处理甚至有的软盘坏道而已. 但是,如果第一部分是坏的磁盘,不能格式化软盘.
所有节目改写布拉格反射,脂肪和根目录信息. 如果有坏道的磁盘的表面,他们是标明为坏脂肪.
在编码方案,采用结构溴酚蓝的作家的BIOS参数块的对比. 结构boot_sector用来写布拉格反射的磁盘. address_field用于结构相互作用汽缸数首长、 与同行业平均规模的田径界.
采用不同功能的编码方案及其说明已考虑在下次表.
Function功能 |
Description描述 |
Random_VolumeID(
)random_volumeid() |
This function
provides the volume ID of the disk.这项功能提供了磁盘数量身分. (How DOS
generates the serial number of the floppy has been
discussed next to this
table)(民政怎样产生的软序号本表中已讨论过旁边) |
mark_bad(
)mark_bad() |
Mark bad sector
using function 04H of INT 13H to verify the
sectors.职能部门用坏了4小时39马克43*部门核实. |
sector_no_to_physical(
)sector_no_to_physical() |
This function
is used to Convert the number of sectors into tracks,
Heads and sectors这项功能是用来跟踪转换成若干部门,主管部门和 |
format_term(
)format_term() |
To terminate
the formatting and exit the program终止格式化出境程序 |
write_boot_info(
)write_boot_info() |
Writes the boot
sector of the disk写入引导扇区的磁盘 |
set_media_type_for_format(
)set_media_type_for_format() |
The function is
used to Set Media Type For format using function 18H of
INT 13H媒体的功能是用来确定使用功能型格式和中国科学院的反应18h43 |
volume_label(
)volume_label() |
The function
gets the volume label to write volume label of the
disk商品标签的功能得到写盘量帽子 |
format(
)格式() |
Wipes the
surface of the disk during formatting as well as
handling the bad sectors count.抹面以及格式化的磁盘在处理坏道计数. |
get_drive_parameters(
)get_drive_parameters() |
The Function
uses INT 13H, Function 08H to get drive
parameters.中国科学院43利用功能,使驾驶功能漏报参数. |
mark_bad(
)mark_bad() |
Holds the
information of bad cluster to mark in
FAT不良信息联网举行纪念脂肪 |
ask_for_continue(
)ask_for_continue() |
Function to
confirm before formatting the disk磁盘格式化前确认功能 |
check_bad(
)check_bad() |
Function to
check if the returned status is error code for BAD
sector返回功能检查各部门的地位误码坏 |
error(
)误差() |
This function
Displays Error message for Corresponding error
code这项功能展示错误讯息错误码对应 |
lock_volume(
)lock_volume() |
The function is
used to lock the Drive using INT 21H, function 44H and
Sub function 0DH该功能是用来锁定驱动用*21H条,分置于功能功能0dh |
unlock_volume(
)unlock_volume() |
The function is
used to unlock the Drive using INT 21H, function 44H and
Sub function 0DH开锁的功能是用来驱动用*21H条,分置于功能功能0dh |
physical_to_sector_no(
)physical_to_sector_no() |
Function is
used to Calculate number of sectors from track, head and
sector number功能是用来计算一些行业的轨道,一些部门和头部 |
序号数量计算的软盘按现行民政系统时钟日期和时间.
第一部分序号总和计算时间(红印花一、二秒)和日期(每月一天). 第二部分是序号等于时间(小时和分钟)、日期(年).
所有演出十六进制计算. 例如,让我们假设你格式化的软环境,在国务院关于10/23/2003.11:16:28:65 现在让我们计算磁盘序号.
时间(秒、红印花秒钟)格式
= (28 and 65)
= (1CH and 41H)
Write it as 1C41
同样,日期(每月一天)格式
= (10 and 23)
= (0AH and 17H)
Write it as 0A17
同样,时间(小时、分钟)格式
= (11 and 16)
= (0BH and 10H)
Write it as 0B10
而今年将
= 2003
= 07D3
现在,让我们计算的序号软盘,根据描述过. 第一部分是序号(1c410a17+)=2658而第二部分的序号会(07d30b10+)=12e3.
|
page 1 | 2 | 3 | 4 | 5 | 6 |
|
|
|
|