;-------------------------------------------------------------------------
; 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文件直接找到了这个变量的名字。
本来自己把汇编窗口里注释了一遍,后来发现原来这个文件里有更详细的说明,大家看看是那个文件里的?
把您电脑里的这个文件的 目录+文件名 放在跟帖里,第一个对的的全分,后面的没有分数。
最近竞猜很火的说。 |