📄 macro.h
字号:
/*===========================================================================*/
/* */
/* FILE : CHASSIS.H */
/* AUTHOR(s) : PPG - 8-bit MCU Application Group */
/* DATE : 06/07/98 */
/* PROCESSOR : ST92195 */
/* COMPILER : GNU C Compiler - V4.21 */
/* */
/* DESCRIPTION : This file contains asm macros */
/*===========================================================================*/
/*****************************************************************************/
/* (c) ST MICROELECTRONICS - All Right Reserved */
/*****************************************************************************/
/* THE SOFTWARE INCLUDED IN THIS FILE IS FOR GUIDANCE ONLY. */
/* ST MICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR */
/* CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM USE OF THIS */
/* SOFTWARE. */
/*===========================================================================*/
#ifndef _macrohead_
#define _macrohead_
#define spm asm("") /* ex: spm; */
#define sdm asm("sdm") /* ex: sdm; */
#define spp(page) asm("spp %0"::"i"(page)) /* ex: spp(OSD_PG3); */
#define srp(bank) asm("srp %0"::"i"(bank)) /* ex: srp(BKD0); */
#define nop asm("nop") /* ex: nop; */
#define scf asm("scf") /* ex: scf; */
#define rcf asm("rcf") /* ex: rcf; */
#define SAVE_PPR asm("pushu R234");
#define RESTORE_PPR asm("popu R234");
#define SAVE_RPR asm("pushuw RR232");
#define RESTORE_RPR asm("popuw RR232");
#define EI asm("ei");
#define DI asm("di");
#define BOOL unsigned char
#define FALSE 0x00 /*( ( unsigned char 0x00 ) )*/
#define TRUE 0x01 /*( ( unsigned char 0x01 ) )*/
/*===========================================================================*/
/*** (c) 1998 ST Microelectronics - All Right Reserved ****** END OF FILE ***/
/*===========================================================================*/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -