打印

有奖竞猜,以下源代码的出处。

[复制链接]
2258|5
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
linqing171|  楼主 | 2010-8-19 23:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
;-------------------------------------------------------------------------
; STRUCTURE OF THE INITIALIZATION INFORMATION
; -------------------------------------------
; This section describes the initialization data generated by C51 for
; explicit variable initializations (in segment ?C_INITSEC).
;
; Explicit variable initilizations at C source level are stored by C51 in
; the segment ?C_INITSEC.  All partial segments are combined at linker level
; to one segment.  The segment end value DB 0 is taken from this library module
; INIT.A51.
;
; Structure of the ?C_INITSEC information:
;     Info (see below) [BYTE]                      ----+  repeated
;     additional info  [BYTES depend on Info]      ----+  repeated
;     0x00             [BYTE]   end of list mark
;
;  Info has the following format:
;
;  Bit      7  6  5  4  3  2  1  0
;  Info   T  T  B  L  L  L  L  L    T=Type  B=BIGBIT  L=LENGTH
;
;  If BIGBIT is set, another LENGTH BYTE FOLLOWS.  The LENGTH
;  info of the first byte is then the HIGH part.
;
;  Typ is one of the following:
;  0  := IDATA init values;  the following bytes follow:
;        -  1 byte address
;        -  init data bytes according LENGTH specification
;
;  1  := XDATA init values;  the following bytes follow:
;        -  2 byte address (high byte first)
;        -  init data bytes according LENGTH specification
;
;  2  := PDATA init values;  the following bytes follow:
;        -  1 byte address
;        -  init data bytes according LENGTH specification
;
;  3, BIGBIT=0  := BIT init values; the followign bytes follow:
;        -  1 byte for each bit according LENGTH specification
;           this byte has the following format:
;
;           Bit    7  6  5  4  3  2  1  0
;                  I  B  B  B  B  B  B  B   I := state of the bit
;                                           B := bit address
;
;  3, BIGBIT=1  := HDATA init values;   the following bytes follow:
;        -  another LENGTH byte (since BIGBIT is always 1)
;        -  3 byte address  (MSB first)
;        -  data bytes according LENGTH specification
;
;----------------------------------------------------------------------




哈哈,从某编译器里某个文件里摘录出来的,程序的一部分,和startup.a51一样,可以不用加入到工程里。
最近一个程序,两个版本,切换了兼容老版本的编译器开关后,通过整理后的hex对比发现,只有一个bit不一样,源代码对比了一个上午没有发现哪里会导致不一样。后来在这个文件里跟踪了老久,终于发现是某个bit类型的变量初始值不一样,从list文件和map文件直接找到了这个变量的名字。
本来自己把汇编窗口里注释了一遍,后来发现原来这个文件里有更详细的说明,大家看看是那个文件里的?

把您电脑里的这个文件的 目录+文件名 放在跟帖里,第一个对的的全分,后面的没有分数。
最近竞猜很火的说。

相关帖子

沙发
ayb_ice| | 2010-8-20 11:56 | 只看该作者
可能是以前的老版本

使用特权

评论回复
板凳
linqing171|  楼主 | 2010-8-20 12:28 | 只看该作者
伤心。
某软件从很老到现在很新的版本里面都有的。。。。。
大家对于竞猜都这么不热心啊?

使用特权

评论回复
地板
john_light| | 2010-8-20 12:50 | 只看该作者
Keil的INIT.A51,Google一下,你便知道。

使用特权

评论回复
5
linqing171|  楼主 | 2010-8-20 19:17 | 只看该作者
..........
给分了。

我以前一直以为这个是不开源的,我反汇编窗口里拷出来,基本都注释完了,后来搜了一下才知道的。

使用特权

评论回复
6
linqing171|  楼主 | 2010-8-20 19:19 | 只看该作者
公司的代理服务器,过滤后认为,结贴是的页面是bet的。。
回家结贴。。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

53

主题

2871

帖子

15

粉丝