📄 initsct.h
字号:
/***********************************************************************/
/* */
/* FILE :initsct.h */
/* DATE :Sun, Jul 27, 2008 */
/* DESCRIPTION :define the macro for initialization of sections. */
/* CPU GROUP :62P */
/* */
/* This file is generated by Renesas Project Generator (Ver.4.8). */
/* */
/***********************************************************************/
/***********************************************************
* initsct.h
*
* clear for bss section
* transfer initialized data to data section
*
* note: Do not modify
*
* $Date: 2006/07/26 07:23:35 $
* $Revision: 1.8 $
**********************************************************/
#include "cstartdef.h"
#pragma section program interrupt
#define sclear(X,Y) _asm(" .initsct "X","Y"\n"\
" mov.b #00H,R0L\n"\
" mov.w #(topof "X") ,A1\n"\
" mov.w #sizeof "X",R3\n"\
" sstr.b");
#define sclear_f(X,Y) _asm(" .initsct "X","Y"\n"\
" push.w #(sizeof "X")>>16\n"\
" push.w #(sizeof "X")&0ffffH\n"\
" push.w #(topof "X")>>16\n"\
" push.w #(topof "X")&0ffffH\n"\
" .stk 8\n"\
" .glb _bzero\n"\
" .call _bzero,G\n"\
" jsr.a _bzero\n"\
" add.b #8H,SP\n"\
" .stk -8");
#define scopy(X,Y) _asm(" .initsct "X","Y"\n"\
" .initsct "X"I,rom"Y"\n"\
" mov.w #(topof "X"I)&0ffffH,A0\n"\
" mov.b #(topof "X"I)>>16,R1H\n"\
" mov.w #(topof "X")&0ffffH,A1\n"\
" mov.w #sizeof "X",R3\n"\
" smovf.b");
#define scopy_f(X,Y) _asm(" .initsct "X","Y"\n"\
" .initsct "X"I,rom"Y"\n"\
" push.w #(sizeof "X") >> 16\n"\
" push.w #(sizeof "X") & 0ffffH\n"\
" push.w #(topof "X") >> 16\n"\
" push.w #(topof "X") & 0ffffH\n"\
" push.w #(topof "X"I) >> 16\n"\
" push.w #(topof "X"I) & 0ffffH\n"\
" .stk 12\n"\
" .glb _bcopy\n"\
" .call _bcopy,G\n"\
" jsr.a _bcopy\n"\
" add.b #0CH,SP\n"\
" .stk -12");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -