Diff for /np2/pccore.h between versions 1.4 and 1.7

version 1.4, 2003/10/20 06:36:33 version 1.7, 2003/11/15 07:10:02
Line 1 Line 1
   
 #include        "nevent.h"  #include        "nevent.h"
   
   enum {
           PCBASECLOCK25           = 2457600,
           PCBASECLOCK20           = 1996800
   };
   
   enum {
           PCMODEL_VM                      = 0,
           PCMODEL_VX                      = 1
   };
   
   #define         CPUMODE_8MHz            0x20
   
 typedef struct {  typedef struct {
         UINT    baseclock;          // エミュレート中によく参照される奴
         UINT    multiple;  
         BYTE    uPD72020;          BYTE    uPD72020;
           BYTE    DISPSYNC;
           BYTE    RASTER;
           BYTE    realpal;
           BYTE    LCD_MODE;
           BYTE    skipline;
           UINT16  skiplight;
   
           BYTE    KEY_MODE;
           BYTE    XSHIFT;
           BYTE    BTN_RAPID;
           BYTE    BTN_MODE;
   
         BYTE    dipsw[3];          BYTE    dipsw[3];
         BYTE    memsw[8];          BYTE    MOUSERAPID;
         BYTE    vol14[6];  
           BYTE    calendar;
           BYTE    usefd144;
         BYTE    wait[6];          BYTE    wait[6];
   
         BYTE    KEY_MODE;  
         BYTE    SOUND_SW;          // リセット時とかあんまり参照されない奴
         BYTE    realpal;                                                                                                // ver0.28          char    model[8];
         UINT16  samplingrate;          UINT    baseclock;
         UINT16  delayms;          UINT    multiple;
         BYTE    MIDIRESET;  
         BYTE    DISPSYNC;          BYTE    memsw[8];
   
           BYTE    ITF_WORK;
         BYTE    EXTMEM;          BYTE    EXTMEM;
         BYTE    PROTECTMEM;                                                                                             // qn          BYTE    grcg;
           BYTE    color16;
           UINT32  BG_COLOR;
           UINT32  FG_COLOR;
   
         BYTE    BTN_RAPID;          UINT16  samplingrate;
         BYTE    BTN_MODE;          UINT16  delayms;
           BYTE    SOUND_SW;
           BYTE    snd_x;
   
         BYTE    snd_x;                                                                                                  // ver0.30  
         BYTE    snd14opt[3];          BYTE    snd14opt[3];
         BYTE    snd26opt;          BYTE    snd26opt;
         BYTE    snd86opt;          BYTE    snd86opt;
Line 32  typedef struct { Line 62  typedef struct {
         BYTE    spb_vrc;                                                                                                // ver0.30          BYTE    spb_vrc;                                                                                                // ver0.30
         BYTE    spb_vrl;                                                                                                // ver0.30          BYTE    spb_vrl;                                                                                                // ver0.30
         BYTE    spb_x;                                                                                                  // ver0.30          BYTE    spb_x;                                                                                                  // ver0.30
         BYTE    mpuopt;  
   
         BYTE    MOTOR;  
         BYTE    MOTORVOL;  
         BYTE    BEEP_VOL;          BYTE    BEEP_VOL;
         BYTE    ITF_WORK;          BYTE    vol14[6];
         BYTE    EMM_WORK;          BYTE    vol_fm;
         BYTE    LCD_MODE;  
         UINT32  BG_COLOR;  
         UINT32  FG_COLOR;  
   
         BYTE    MOUSERAPID;  
         BYTE    XSHIFT;  
         BYTE    skipline;  
         UINT16  skiplight;  
         BYTE    RASTER;  
   
         BYTE    vol_fm;                                                                                                 // ver0.27  
         BYTE    vol_ssg;          BYTE    vol_ssg;
         BYTE    vol_adpcm;          BYTE    vol_adpcm;
         BYTE    vol_pcm;          BYTE    vol_pcm;
         BYTE    vol_rhythm;          BYTE    vol_rhythm;
   
         BYTE    pc9861enable;                                                                                   // ver0.29          BYTE    mpuenable;
           BYTE    mpuopt;
   
           BYTE    pc9861enable;
         BYTE    pc9861sw[3];          BYTE    pc9861sw[3];
         BYTE    pc9861jmp[6];          BYTE    pc9861jmp[6];
   
         BYTE    grcg;          BYTE    MOTOR;
         BYTE    color16;          BYTE    MOTORVOL;
         BYTE    calendar;          BYTE    PROTECTMEM;
         BYTE    usefd144;  
   
         char    hddfile[2][MAX_PATH];                                                                   // ver0.30          char    hddfile[2][MAX_PATH];                                                                   // ver0.30
         char    fontfile[MAX_PATH];          char    fontfile[MAX_PATH];
Line 81  typedef struct { Line 99  typedef struct {
         UINT32  raster;          UINT32  raster;
         UINT32  hsync;          UINT32  hsync;
         BYTE    cpumode;          BYTE    cpumode;
           BYTE    model;
 } PCCORE;  } PCCORE;
   
 enum {  
         PCBASECLOCK25           = 2457600,  
         PCBASECLOCK20           = 1996800  
 };  
   
 #define         CPUMODE_8MHz            0x20  
   
   
 #ifdef __cplusplus  #ifdef __cplusplus
 extern "C" {  extern "C" {
Line 99  extern const char np2version[]; Line 111  extern const char np2version[];
   
 extern  NP2CFG  np2cfg;  extern  NP2CFG  np2cfg;
 extern  PCCORE  pc;  extern  PCCORE  pc;
 extern  BYTE    dip_default[3];  
 extern  BYTE    msw_default[8];  
 extern  BYTE    screenupdate;  extern  BYTE    screenupdate;
 extern  int             soundrenewal;  extern  int             soundrenewal;
 extern  BOOL    drawframe;  extern  BOOL    drawframe;

Removed from v.1.4  
changed lines
  Added in v.1.7


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