Diff for /np2/pccore.h between versions 1.1 and 1.8

version 1.1, 2003/10/16 17:57:05 version 1.8, 2003/12/04 06:41:23
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    NOWAIT;         // 0  
 //      BYTE    DRAW_SKIP;      // 2  
         BYTE    realpal;                                                                                                // ver0.28  
         UINT16  samplingrate;  
         UINT16  delayms;  
 //      BYTE    WINSNAP;        // 1  
 //      BYTE    DISPCLK;        // 0  
         BYTE    MIDIRESET;  
 //      BYTE    MOUSE_SW;       // 0  
         BYTE    DISPSYNC;  
         BYTE    EXTMEM;  
         BYTE    PROTECTMEM;                                                                                             // qn  
   
         BYTE    BTN_RAPID;          // リセット時とかあんまり参照されない奴
         BYTE    BTN_MODE;          char    model[8];
           UINT    baseclock;
           UINT    multiple;
   
           BYTE    memsw[8];
   
 //      BYTE    JOYPAD1;                                                                                                // ver0.28          BYTE    ITF_WORK;
 //      BYTE    JOYPAD2;          BYTE    EXTMEM;
 //      BYTE    JOY1BTN[4];          BYTE    grcg;
           BYTE    color16;
           UINT32  BG_COLOR;
           UINT32  FG_COLOR;
   
           UINT16  samplingrate;
           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 41  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    I286SAVE;               // 0  
 //      BYTE    MIMPIDEF;               // 0  
 //      BYTE    REMOVEHD;               // 0  
 //      BYTE    KEYBOARD;               // KEY_UNKNOWN  
         BYTE    MOUSERAPID;  
         BYTE    XSHIFT;  
 //      BYTE    F12COPY;                // 0  
         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];
   
 //      UINT    paddingx;               // 1          BYTE    MOTOR;
 //      UINT    paddingy;               // 1          BYTE    MOTORVOL;
         BYTE    grcg;          BYTE    PROTECTMEM;
 //      BYTE    background;             // 0  
         BYTE    color16;  
         BYTE    calendar;  
         BYTE    usefd144;  
   
         char    hddfile[2][MAX_PATH];                                                                   // ver0.30          char    hddfile[2][MAX_PATH];                                                                   // ver0.30
         char    fontfile[MAX_PATH];          char    fontfile[MAX_PATH];
           char    biospath[MAX_PATH];
 } NP2CFG;  } NP2CFG;
   
 typedef struct {  typedef struct {
Line 92  typedef struct { Line 94  typedef struct {
         UINT32  dispclock;          UINT32  dispclock;
         UINT32  vsyncclock;          UINT32  vsyncclock;
         UINT32  mouseclock;          UINT32  mouseclock;
         UINT32  dsoundclock;  
         UINT32  dsoundclock2;  
         UINT32  keyboardclock;          UINT32  keyboardclock;
         UINT32  midiclock;          UINT32  midiclock;
         UINT32  sampleclock;  
         UINT32  frame1000;          UINT32  frame1000;
         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 119  extern const char np2version[]; Line 112  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.1  
changed lines
  Added in v.1.8


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