?? xgate.h
字號:
#ifndef __XGATE_H_
#define __XGATE_H_
/* XGATE vector table entry */
typedef void (*_NEAR XGATE_Function)(int);
typedef struct {
XGATE_Function pc; /* pointer to the handler */
int dataptr; /* pointer to the data of the handler */
} XGATE_TableEntry;
typedef struct
{
unsigned char size;
unsigned char character[8];
} tBuffer;
#pragma push /* save current segment definitions */
#pragma CONST_SEG __GPAGE_SEG XGATE_VECTORS /* for the HCS12X/XGATE shared setup, HCS12X needs global addressing to access teh vector table. */
#define XGATE_VECTOR_OFFSET 9 /* the first elements are unused and need not to be allocated (to save space) */
extern const XGATE_TableEntry XGATE_VectorTable[];
#pragma pop /* restore previous segment definitions */
/* this code is to demonstrate how to share date between XGATE and S12X */
#pragma push /* save current segment definitions */
#pragma DATA_SEG SHARED_DATA /* allocate the following variables in the segment SHARED_DATA */
extern int shared_counter;
#pragma pop /* restore previous segment definitions */
#endif /* __XGATE_H_ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -