迅维网

查看: 3601|回复: 0
打印 上一主题 下一主题

WINHEX的Master Boot Record.tpl问题

[复制链接]
跳转到指定楼层
1#
发表于 2011-2-24 20:46:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式 来自: 广东广州 来自 广东广州

马上注册,获取阅读精华内容及下载权限

您需要 登录 才可以下载或查看,没有帐号?注册

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个文件除了汉化,语句没什么问题,为什么会得到的参数不一样呢,看下图(仅为同一个硬盘得到的信息)
下面是模板得到的信息:
汉化版得到的:

                               
登录/注册后看高清大图



                               
登录/注册后看高清大图

英文版得到的:

                               
登录/注册后看高清大图



                               
登录/注册后看高清大图

请教下大家为什么会得到这个的结果,本人菜鸟一个,看不出汉化版跟英文版的模板有什么区别!

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表
附近
店铺
微信扫码查看附近店铺
维修
报价
扫码查看手机版报价
信号元
件查询
点位图


芯片搜索

快速回复