mirror of
https://github.com/sheumann/AFPBridge.git
synced 2024-11-01 01:05:06 +00:00
fe2680b65a
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).
18 lines
337 B
C
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
|