hidef.h
来自「ST72T63游戏杆源程序」· C头文件 代码 · 共 60 行
H
60 行
/*****************************************************
hidef.h - HICROSS-C library: machine dependent stuff
----------------------------------------------------
Copyright (c) 1992 HIWARE AG, Basel, Switzerland
All rights reserved
Do not modify!
*****************************************************/
#ifndef _H_HIDEF_
#define _H_HIDEF_
/**** Version for SGS THOMSON ST7 */
#include <stddef.h>
#pragma NO_STRING_CONSTR
typedef enum _bool {FALSE, TRUE} Bool;
typedef void (*PROC)(void); /* parameterless function pointer (Procedure variable) */
typedef unsigned char Byte;
typedef unsigned int Word;
typedef unsigned long LWord;
typedef unsigned char uchar;
typedef unsigned int uint;
typedef unsigned long ulong;
typedef signed char schar;
typedef signed int sint;
typedef signed long slong;
#define HALTX(z) {asm LD a,#z; asm TRAP; }
#define HALT_0 {asm CLR a; asm TRAP;}
#define HALT_AND_QUIT {asm LD a,#32; asm TRAP; }
#define EnableInterrupts {asm RIM;}
#define DisableInterrupts {asm SIM;}
void SaveLong(char *mem);
/** save the space in the zeropage used for long arithmetic to the mem location */
/** The pointer mem must point to a memory location of atleast 24 bytes */
void RestoreLong(char *mem);void SaveLong(char *mem);
void SaveFloat(char *mem);
/** save the space in the zeropage used for float arithmetic to the mem location */
/** The pointer mem must point to a memory location of atleast 23 bytes */
void RestoreFloat(char *mem);void SaveLong(char *mem);
#endif
/*****************************************************/
/* end hidef.h */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?