AFPBridge/asmglue.h
Stephen Heumann fe2680b65a Bail out early if we're in P8 mode.
This avoids any possible strange behavior with calling Marinetti in P8 mode. It also ensures that I/O operations in P8 mode will give an error, but not terminate the connection: it will still be alive when we get back to GS/OS, unless the server has killed it due to inactivity (which is quite possible).
2017-04-16 18:25:58 -05:00

18 lines
337 B
C

#ifndef ASMGLUE_H
#define ASMGLUE_H
#include <types.h>
extern Word ForceLCBank2(void);
extern Word ForceRomIn(void);
extern void RestoreStateReg(Word);
void IncBusyFlag(void) inline(0, 0xE10064);
void DecBusyFlag(void) inline(0, 0xE10068);
#define OS_KIND (*(Byte*)0xE100BC)
#define KIND_P8 0x00
#define KIND_GSOS 0x01
#endif