📄 hidef.h
字号:
/*****************************************************
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -