📄 ghs.h
字号:
/*
* File: ghs.h
* Purpose: Define constants for Green Hills Software toolchain
*
* Notes:
*
*/
#ifndef _GHS_H_
#define _GHS_H_
/********************************************************************/
/*
* Define a constant to inform files we are using GHS
* __ghs__ is defined by the toolchain but __GHS__ is
* so much better :)
*/
#ifndef __GHS__
#define __GHS__
#endif
/*
* The source uses __interrupt__ to identify a function as
* an interrupt or exception handler. GHS uses __interrupt,
* so we are appeasing it like this.
*/
#define __interrupt__ __interrupt
/*
* Provide a few assembly instructions for C level routines
*/
#define halt() asm(" halt")
#define nop() asm(" nop")
#define tpf() asm(" tpf")
#define stop_2700() asm(" stop #0x2700")
#define stop_2600() asm(" stop #0x2600")
#define stop_2500() asm(" stop #0x2500")
#define stop_2400() asm(" stop #0x2400")
#define stop_2300() asm(" stop #0x2300")
#define stop_2200() asm(" stop #0x2200")
#define stop_2100() asm(" stop #0x2100")
#define stop_2000() asm(" stop #0x2000")
/********************************************************************/
#endif /* _GHS_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -