From e510fa2bb4248302755acd7dd2e7c51e75de4746 Mon Sep 17 00:00:00 2001 From: ehouse Date: Fri, 17 Sep 2004 07:11:15 +0000 Subject: [PATCH] first checked in. --- palm/pnostate.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 palm/pnostate.h diff --git a/palm/pnostate.h b/palm/pnostate.h new file mode 100644 index 000000000..5ab356ff1 --- /dev/null +++ b/palm/pnostate.h @@ -0,0 +1,27 @@ +/* -*-mode: C; fill-column: 77; c-basic-offset: 4; -*- */ + +#ifndef _PNOSTATE_H_ +#define _PNOSTATE_H_ + +#include + +/* This gets written into the code by the callback below. */ +typedef struct PNOState { + const void* emulStateP; + Call68KFuncType* call68KFuncP; + void* gotTable; +} PNOState; + +typedef struct PnoletUserData PnoletUserData; +typedef void StorageCallback(PnoletUserData* dataP); + +/* This is how armlet and 68K stub communicate on startup */ +struct PnoletUserData { + unsigned long* pnoletEntry; + unsigned long* gotTable; + StorageCallback* storageCallback; /* armlet calls this */ + PNOState* stateSrc; /* armlet fills in */ + PNOState* stateDest; /* armlet fills in */ +}; + +#endif