mirror of
https://github.com/antoinevignau/source.git
synced 2024-10-31 22:06:40 +00:00
1 line
761 B
C
Executable File
1 line
761 B
C
Executable File
/* TH Error codes */
|
|
|
|
#define THNOERR 0
|
|
#define THACTIVE 1
|
|
#define THINACTIVE 2
|
|
#define THPRODOS 3
|
|
#define THBADMEAN 4
|
|
#define THNOMEM 5
|
|
|
|
/* TH calls */
|
|
|
|
extern pascal void THStartUp();
|
|
extern pascal void THShutDown();
|
|
extern pascal unsigned THWord();
|
|
extern pascal char *THInfo();
|
|
|
|
|
|
extern unsigned _THID;
|
|
extern unsigned _THErrNum[];
|
|
extern unsigned _THXVal;
|
|
extern unsigned _THActive[];
|
|
|
|
extern unsigned _SPTHID[];
|
|
|
|
#ifdef setbank
|
|
#undef setbank
|
|
#undef restorebank
|
|
#endif setbank
|
|
|
|
#define setbank asm{ phb \
|
|
phb \
|
|
lda #^_toolErr \
|
|
pha \
|
|
plb \
|
|
pla \
|
|
}
|
|
#define restorebank asm{ plb }
|
|
|
|
#ifndef SPTHID
|
|
#define SPTHID 0x0900 /* to be added to the real memory ID */
|
|
#endif |