Diff for /np2/win9x/dialog/d_mpu98.cpp between versions 1.8 and 1.10

version 1.8, 2005/02/09 20:11:36 version 1.10, 2007/01/08 08:52:22
Line 2 Line 2
 #include        "strres.h"  #include        "strres.h"
 #include        "resource.h"  #include        "resource.h"
 #include        "np2.h"  #include        "np2.h"
   #include        "oemtext.h"
 #include        "commng.h"  #include        "commng.h"
 #include        "sysmng.h"  #include        "sysmng.h"
 #include        "dialog.h"  #include        "dialog.h"
Line 20  extern COMMNG cm_mpu98; Line 21  extern COMMNG cm_mpu98;
 }  }
 #endif  #endif
   
 static const OEMCHAR *mpuinterrupt[4] = {  static const TCHAR *mpuinterrupt[4] = {
                                                                         str_int0, str_int1, str_int2, str_int5};                                                                          str_int0, str_int1, str_int2, str_int5};
   
 static  UINT8   mpu = 0;  static  UINT8   mpu = 0;
Line 34  static void setmpuiopara(HWND hWnd, UINT Line 35  static void setmpuiopara(HWND hWnd, UINT
   
 static UINT8 getmpuio(HWND hWnd, UINT16 res) {  static UINT8 getmpuio(HWND hWnd, UINT16 res) {
   
         OEMCHAR work[8];          TCHAR   work[8];
   
         GetDlgItemText(hWnd, res, work, NELEMENTS(work));          GetDlgItemText(hWnd, res, work, NELEMENTS(work));
         return((milstr_solveHEX(work) >> 6) & 0xf0);          return((UINT8)((miltchar_solveHEX(work) >> 6) & 0xf0));
 }  }
   
 static void setmpuintpara(HWND hWnd, UINT16 res, UINT8 value) {  static void setmpuintpara(HWND hWnd, UINT16 res, UINT8 value) {
Line 48  static void setmpuintpara(HWND hWnd, UIN Line 49  static void setmpuintpara(HWND hWnd, UIN
   
 static UINT8 getmpuint(HWND hWnd, UINT16 res) {  static UINT8 getmpuint(HWND hWnd, UINT16 res) {
   
         OEMCHAR work[8];          TCHAR   work[8];
         UINT8   ret;          TCHAR   ret;
   
         GetDlgItemText(hWnd, res, work, NELEMENTS(work));          GetDlgItemText(hWnd, res, work, NELEMENTS(work));
         ret = work[3] - '0';          ret = work[3] - '0';
         if (ret >= 3) {          if (ret < 0) {
                   ret = 0;
           }
           else if (ret >= 3) {
                 ret = 3;                  ret = 3;
         }          }
         return(ret);          return((UINT8)ret);
 }  }
   
 static void setmpujmp(HWND hWnd, UINT8 value, UINT8 bit) {  static void setmpujmp(HWND hWnd, UINT8 value, UINT8 bit) {
Line 74  static void setmpujmp(HWND hWnd, UINT8 v Line 78  static void setmpujmp(HWND hWnd, UINT8 v
 static void mpucreate(HWND hWnd) {  static void mpucreate(HWND hWnd) {
   
         UINT    i;          UINT    i;
         OEMCHAR buf[8];          TCHAR   buf[8];
         HWND    sub;          HWND    sub;
   
         mpu = np2cfg.mpuopt;          mpu = np2cfg.mpuopt;
         for (i=0; i<16; i++) {          for (i=0; i<16; i++) {
                 OEMSPRINTF(buf, str_4X, 0xC0D0 + (i << 10));                  wsprintf(buf, tchar_4X, 0xC0D0 + (i << 10));
                 SendDlgItemMessage(hWnd, IDC_MPUIO,                  SendDlgItemMessage(hWnd, IDC_MPUIO,
                                                                         CB_INSERTSTRING, (WPARAM)i, (LPARAM)buf);                                                                          CB_INSERTSTRING, (WPARAM)i, (LPARAM)buf);
         }          }

Removed from v.1.8  
changed lines
  Added in v.1.10


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