Diff for /np2/win9x/debuguty/viewcmn.cpp between versions 1.1 and 1.6

version 1.1, 2003/10/16 17:59:09 version 1.6, 2004/04/08 13:08:23
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "resource.h"  #include        "resource.h"
 #include        "np2.h"  #include        "np2.h"
 #include        "i286.h"  
 #include        "memory.h"  
 #include        "pccore.h"  
 #include        "iocore.h"  
 #include        "bios.h"  
 #include        "viewer.h"  #include        "viewer.h"
   #include        "viewcmn.h"
 #include        "viewmenu.h"  #include        "viewmenu.h"
 #include        "viewmem.h"  #include        "viewmem.h"
 #include        "viewreg.h"  #include        "viewreg.h"
Line 14 Line 10
 #include        "view1mb.h"  #include        "view1mb.h"
 #include        "viewasm.h"  #include        "viewasm.h"
 #include        "viewsnd.h"  #include        "viewsnd.h"
   #include        "cpucore.h"
   #include        "pccore.h"
   #include        "iocore.h"
   #include        "bios.h"
   
   
 char viewcmn_hex[16] = {  char viewcmn_hex[16] = {
Line 52  void viewcmn_putcaption(NP2VIEW_T *view) Line 52  void viewcmn_putcaption(NP2VIEW_T *view)
   
 BOOL viewcmn_alloc(VIEWMEMBUF *buf, DWORD size) {  BOOL viewcmn_alloc(VIEWMEMBUF *buf, DWORD size) {
   
         if (buf->type == ALOOCTYPE_ERROR) {          if (buf->type == ALLOCTYPE_ERROR) {
                 return(FAILURE);                  return(FAILURE);
         }          }
         if (buf->size < size) {          if (buf->size < size) {
Line 62  BOOL viewcmn_alloc(VIEWMEMBUF *buf, DWOR Line 62  BOOL viewcmn_alloc(VIEWMEMBUF *buf, DWOR
                 ZeroMemory(buf, sizeof(VIEWMEMBUF));                  ZeroMemory(buf, sizeof(VIEWMEMBUF));
                 buf->ptr = malloc(size);                  buf->ptr = malloc(size);
                 if (!buf->ptr) {                  if (!buf->ptr) {
                         buf->type = ALOOCTYPE_ERROR;                          buf->type = ALLOCTYPE_ERROR;
                         return(FAILURE);                          return(FAILURE);
                 }                  }
                 buf->size = size;                  buf->size = size;
Line 155  void viewcmn_setbank(NP2VIEW_T *view) { Line 155  void viewcmn_setbank(NP2VIEW_T *view) {
   
         dmem = &view->dmem;          dmem = &view->dmem;
         dmem->vram = gdcs.disp;          dmem->vram = gdcs.disp;
         dmem->itf = itf.bank;          dmem->itf = CPU_ITFBANK;
         dmem->A20 = (BYTE)((extmem.adrsmask >> 20) & 1);          dmem->A20 = (BYTE)((CPU_ADRSMASK >> 20) & 1);
 }  }
   
   
Line 183  void viewcmn_setmenuseg(HWND hwnd) { Line 183  void viewcmn_setmenuseg(HWND hwnd) {
         hmenu = GetSubMenu(hparent, 2);          hmenu = GetSubMenu(hparent, 2);
   
         if (hmenu) {          if (hmenu) {
                 modmenu(hmenu, 2, IDM_SEGCS, "CS", I286_CS);                  modmenu(hmenu, 2, IDM_SEGCS, "CS", CPU_CS);
                 modmenu(hmenu, 3, IDM_SEGDS, "DS", I286_DS);                  modmenu(hmenu, 3, IDM_SEGDS, "DS", CPU_DS);
                 modmenu(hmenu, 4, IDM_SEGES, "ES", I286_ES);                  modmenu(hmenu, 4, IDM_SEGES, "ES", CPU_ES);
                 modmenu(hmenu, 5, IDM_SEGSS, "SS", I286_SS);                  modmenu(hmenu, 5, IDM_SEGSS, "SS", CPU_SS);
                 DrawMenuBar(hwnd);                  DrawMenuBar(hwnd);
         }          }
 }  }

Removed from v.1.1  
changed lines
  Added in v.1.6


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