--- np2/pccore.h 2004/02/13 20:31:54 1.21 +++ np2/pccore.h 2004/03/22 05:38:47 1.25 @@ -8,6 +8,8 @@ enum { }; enum { + CPUMODE_8MHZ = 0x20, + PCMODEL_VF = 0, PCMODEL_VM = 1, PCMODEL_VX = 2, @@ -25,13 +27,6 @@ enum { PCCBUS_MPU98 = 0x0002 }; -#define CPUMODE_8MHz 0x20 - -// これ ver0.75で別ファイルへ移動すること -typedef struct { - UINT8 keys; - UINT8 key[15]; -} _NKEYM, *NKEYM; typedef struct { // エミュレート中によく参照される奴 @@ -55,8 +50,6 @@ typedef struct { UINT8 usefd144; BYTE wait[6]; - _NKEYM userkey[2]; - // リセット時とかあんまり参照されない奴 char model[8]; UINT baseclock; @@ -131,6 +124,12 @@ typedef struct { UINT32 realclock; } PCCORE; +enum { + COREEVENT_SHUT = 0, + COREEVENT_RESET = 1, + COREEVENT_EXIT = 2 +}; + #ifdef __cplusplus extern "C" { @@ -158,6 +157,8 @@ void pccore_term(void); void pccore_reset(void); void pccore_exec(BOOL draw); +void pccore_postevent(UINT32 event); + #ifdef __cplusplus } #endif