📄 init_table.s
字号:
; IMAL 2005-10-12
; The following table entry is needed to make
; the IAR start-up-sequence to copy from the
; a segment (often in ROM) to a segment in RAM
RSEG CODE1:ROOT
RSEG CODE_ROM:ROOT
/* Structure of an element in the segment initialization table
* in segment INITTAB. Used for both zero-initialization and copying. */
; typedef struct
; {
; long Size; /* Number of bytes to initialize */
; char* Dst; /* Destination. If Dst==Src, then init to 0 */
; char* Src; /* Source address. Usually in ROM. */
; } InitBlock_Type;
RSEG INITTAB:CODE:ROOT(2) ; 2^2 4 bytes alignment
DATA
DCD sfe(CODE_ROM) - sfb(CODE_ROM) ; size of the segment
DCD sfb(CODE1) ; start address of where to copy to
DCD sfb(CODE_ROM) ; start address of where to copy from
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -