- 积分
- 188
- 下载分
- 分
- 威望
- 点
- 原创币
- 点
- 下载
- 次
- 上传
- 次
- 注册时间
- 2009-6-4
- 精华
|
马上注册,获取阅读精华内容及下载权限
您需要 登录 才可以下载或查看,没有帐号?注册
x
本帖最后由 板卡学徒 于 2011-2-24 20:57 编辑
今天下载了WINHEX14.2 SR-3 还有其他的几个汉化版本,跟winhex15.9 SR-3英文板。在用Master Boot Record模板(汉化版模板名称:主引导记录模板)查看时,发现我下载的汉化版模板都有问题,请教是什么问题:
贴出相关信息如下,下面是汉化版的Master Boot Record.tpl文件
template "主引导记录"
// Template by Stefan Fleischmann
// X-Ways Software Technology AG
// 适用于物理硬盘的 0 扇区或任何分区的第一扇区。
description "包含分区表"
applies_to disk
sector-aligned
requires 510 "55 AA"
begin
read-only hex 440 "主引导程序载入代码"
// Addition by Daniel B. Sedory:
big-endian hexadecimal uint32 "Windows disk signature"
move -4
hexadecimal uint32 "Same reversed"
// This SN is created by any NT-type OS (NT, 2000, XP,
// 2003) and used in the Windows Registry.
move 2
numbering 1
{
section "分区表项 #~"
hex 1 "80 = 活动分区"
uint8 "开始头"
uint_flex "5,4,3,2,1,0" "开始扇区"
move -4
uint_flex "7,6,15,14,13,12,11,10,9,8" "开始柱面"
move -2
hex 1 "分区类型指示 (16 进制)"
uint8 "结束头"
uint_flex "5,4,3,2,1,0" "结束扇区"
move -4
uint_flex "7,6,15,14,13,12,11,10,9,8" "结束柱面"
move -2
uint32 "扇区在前的分区 ~"
uint32 "扇区在分区 ~"
} [4]
endsection
read-only hex 2 "特征 (55 AA)"
end
下面是英文版的Master Boot Record.tpl文件
template "Master Boot Record"
// Template by Stefan Fleischmann
// X-Ways Software Technology AG
// To be applied to sector 0 of a physical hard disk.
description "Contains partition table"
applies_to disk
sector-aligned
requires 510 "55 AA"
begin
read-only hex 440 "Master bootstrap loader code"
// Addition by Daniel B. Sedory:
big-endian hexadecimal uint32 "Windows disk signature"
move -4
hexadecimal uint32 "Same reversed"
// This SN is created by any NT-type OS (NT, 2000, XP,
// 2003) and used in the Windows Registry.
move 2
numbering 1
{
section "Partition Table Entry #~"
hex 1 "80 = active partition"
uint8 "Start head"
uint_flex "5,4,3,2,1,0" "Start sector"
move -4
uint_flex "7,6,15,14,13,12,11,10,9,8" "Start cylinder"
move -2
hex 1 "Partition type indicator (hex)"
uint8 "End head"
uint_flex "5,4,3,2,1,0" "End sector"
move -4
uint_flex "7,6,15,14,13,12,11,10,9,8" "End cylinder"
move -2
uint32 "Sectors preceding partition ~"
uint32 "Sectors in partition ~"
} [4]
endsection
read-only hex 2 "Signature (55 AA)"
end
看2个文件除了汉化,语句没什么问题,为什么会得到的参数不一样呢,看下图(仅为同一个硬盘得到的信息)
下面是模板得到的信息:
汉化版得到的:
英文版得到的:
请教下大家为什么会得到这个的结果,本人菜鸟一个,看不出汉化版跟英文版的模板有什么区别! |
|