⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 initsct.h

📁 少见的瑞萨,R8C/Tinmy系列弹片机AD的使用方法,提供源代码.以及中断的进入方法.
💻 H
字号:
/***********************************************************************/
/*                                                                     */
/*  FILE        :initsct.h                                             */
/*  DATE        :Fri, Nov 09, 2007                                     */
/*  DESCRIPTION :define the macro for initialization of sections.      */
/*  CPU GROUP   :16(ROM16K)                                            */
/*                                                                     */
/*  This file is generated by Renesas Project Generator (Ver.4.8).     */
/*                                                                     */
/***********************************************************************/

/***********************************************************
 *  COMPILER for R8C/Tiny
 *
 *  Copyright(c) 2004 Renesas Technology Corp.
 *  And Renesas Solutions Corp.,All Rights Reserved.
 *
 *  initsct.h
 *
 *  clear for bss section
 *  transfer initialized data to data section
 * 
 *  note: Do not modify
 *
 * $Date: 2005/10/24 11:55:27 $
 * $Revision: 1.6 $
 **********************************************************/ 

#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	_bcopy\n"\
			"	.call	_bcopy,G\n"\
			"	jsr.a	_bcopy");	


#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	#00H,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");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -