Diff for /np2/pccore.h between versions 1.18 and 1.28

version 1.18, 2004/02/07 21:23:21 version 1.28, 2007/11/11 12:46:06
Line 8  enum { Line 8  enum {
 };  };
   
 enum {  enum {
           CPUMODE_8MHZ            = 0x20,
   
         PCMODEL_VF                      = 0,          PCMODEL_VF                      = 0,
         PCMODEL_VM                      = 1,          PCMODEL_VM                      = 1,
         PCMODEL_VX                      = 2,          PCMODEL_VX                      = 2,
Line 19  enum { Line 21  enum {
         PCHDD_SCSI                      = 0x02,          PCHDD_SCSI                      = 0x02,
         PCHDD_IDE                       = 0x04,          PCHDD_IDE                       = 0x04,
   
           PCROM_BIOS                      = 0x01,
           PCROM_SOUND                     = 0x02,
           PCROM_SASI                      = 0x04,
           PCROM_SCSI                      = 0x08,
           PCROM_BIOS9821          = 0x10,
   
         PCSOUND_NONE            = 0x00,          PCSOUND_NONE            = 0x00,
   
         PCCBUS_PC9861K          = 0x0001,          PCCBUS_PC9861K          = 0x0001,
         PCCBUS_MPU98            = 0x0002          PCCBUS_MPU98            = 0x0002
 };  };
   
 #define         CPUMODE_8MHz            0x20  
   
 typedef struct {  typedef struct {
         // エミュレート中によく参照される奴          // エミュレート中によく参照される奴
Line 42  typedef struct { Line 49  typedef struct {
         UINT8   BTN_RAPID;          UINT8   BTN_RAPID;
         UINT8   BTN_MODE;          UINT8   BTN_MODE;
   
         BYTE    dipsw[3];          UINT8   dipsw[3];
         UINT8   MOUSERAPID;          UINT8   MOUSERAPID;
   
         UINT8   calendar;          UINT8   calendar;
         UINT8   usefd144;          UINT8   usefd144;
         BYTE    wait[6];          UINT8   wait[6];
   
   
         // リセット時とかあんまり参照されない奴          // リセット時とかあんまり参照されない奴
         char    model[8];          OEMCHAR model[8];
         UINT    baseclock;          UINT    baseclock;
         UINT    multiple;          UINT    multiple;
   
         BYTE    memsw[8];          UINT8   memsw[8];
   
         UINT8   ITF_WORK;          UINT8   ITF_WORK;
         UINT8   EXTMEM;          UINT8   EXTMEM;
Line 69  typedef struct { Line 75  typedef struct {
         UINT8   SOUND_SW;          UINT8   SOUND_SW;
         UINT8   snd_x;          UINT8   snd_x;
   
         BYTE    snd14opt[3];          UINT8   snd14opt[3];
         UINT8   snd26opt;          UINT8   snd26opt;
         UINT8   snd86opt;          UINT8   snd86opt;
         UINT8   spbopt;          UINT8   spbopt;
Line 78  typedef struct { Line 84  typedef struct {
         UINT8   spb_x;                                                                                                  // ver0.30          UINT8   spb_x;                                                                                                  // ver0.30
   
         UINT8   BEEP_VOL;          UINT8   BEEP_VOL;
         BYTE    vol14[6];          UINT8   vol14[6];
         UINT8   vol_fm;          UINT8   vol_fm;
         UINT8   vol_ssg;          UINT8   vol_ssg;
         UINT8   vol_adpcm;          UINT8   vol_adpcm;
Line 89  typedef struct { Line 95  typedef struct {
         UINT8   mpuopt;          UINT8   mpuopt;
   
         UINT8   pc9861enable;          UINT8   pc9861enable;
         BYTE    pc9861sw[3];          UINT8   pc9861sw[3];
         BYTE    pc9861jmp[6];          UINT8   pc9861jmp[6];
   
         UINT8   fddequip;          UINT8   fddequip;
         UINT8   MOTOR;          UINT8   MOTOR;
Line 98  typedef struct { Line 104  typedef struct {
         UINT8   PROTECTMEM;          UINT8   PROTECTMEM;
         UINT8   hdrvacc;          UINT8   hdrvacc;
   
         char    sasihdd[2][MAX_PATH];                                                                   // ver0.74          OEMCHAR sasihdd[2][MAX_PATH];                                                                   // ver0.74
         char    scsihdd[4][MAX_PATH];                                                                   // ver0.74  #if defined(SUPPORT_SCSI)
         char    fontfile[MAX_PATH];          OEMCHAR scsihdd[4][MAX_PATH];                                                                   // ver0.74
         char    biospath[MAX_PATH];  #endif
         char    hdrvroot[MAX_PATH];          OEMCHAR fontfile[MAX_PATH];
           OEMCHAR biospath[MAX_PATH];
           OEMCHAR hdrvroot[MAX_PATH];
 } NP2CFG;  } NP2CFG;
   
 typedef struct {  typedef struct {
Line 113  typedef struct { Line 121  typedef struct {
         UINT8   model;          UINT8   model;
         UINT8   hddif;          UINT8   hddif;
         UINT8   extmem;          UINT8   extmem;
         BYTE    dipsw[3];               // リセット時のDIPSW          UINT8   dipsw[3];               // リセット時のDIPSW
         UINT8   padding;          UINT8   rom;
   
         UINT32  sound;          UINT32  sound;
         UINT32  device;          UINT32  device;
Line 122  typedef struct { Line 130  typedef struct {
         UINT32  realclock;          UINT32  realclock;
 } PCCORE;  } PCCORE;
   
   enum {
           COREEVENT_SHUT          = 0,
           COREEVENT_RESET         = 1,
           COREEVENT_EXIT          = 2
   };
   
   typedef struct
   {
           UINT8   screenupdate;
           UINT8   screendispflag;
           UINT8   drawframe;
           UINT8   hardwarereset;
   } PCSTAT;
   
   
 #ifdef __cplusplus  #ifdef __cplusplus
 extern "C" {  extern "C" {
 #endif  #endif
   
 extern const char np2version[];  extern const OEMCHAR np2version[];
   
 extern  NP2CFG  np2cfg;  extern  NP2CFG  np2cfg;
 extern  PCCORE  pccore;  extern  PCCORE  pccore;
 extern  BYTE    screenupdate;  extern  PCSTAT  pcstat;
 extern  int             soundrenewal;  extern  UINT8   soundrenewal;
 extern  BOOL    drawframe;  
 extern  UINT    drawcount;  extern  UINT    drawcount;
 extern  BOOL    hardwarereset;  
   
 void getbiospath(char *path, const char *fname, int maxlen);  void getbiospath(OEMCHAR *path, const OEMCHAR *fname, int maxlen);
 void screendisp(NEVENTITEM item);  void screendisp(NEVENTITEM item);
 void screenvsync(NEVENTITEM item);  void screenvsync(NEVENTITEM item);
   
Line 149  void pccore_term(void); Line 169  void pccore_term(void);
 void pccore_reset(void);  void pccore_reset(void);
 void pccore_exec(BOOL draw);  void pccore_exec(BOOL draw);
   
   void pccore_postevent(UINT32 event);
   
 #ifdef __cplusplus  #ifdef __cplusplus
 }  }
 #endif  #endif

Removed from v.1.18  
changed lines
  Added in v.1.28


RetroPC.NET-CVS <cvs@retropc.net>