Diff for /np2/win9x/debuguty/viewasm.cpp between versions 1.3 and 1.4

version 1.3, 2003/12/08 00:55:34 version 1.4, 2004/02/18 02:03:37
Line 29  static void viewasm_paint(NP2VIEW_T *vie Line 29  static void viewasm_paint(NP2VIEW_T *vie
         BYTE            buf[16];          BYTE            buf[16];
         char            str[16];          char            str[16];
         HFONT           hfont;          HFONT           hfont;
         PREFIX_T        fix;          _UNASM          una;
         UNASM_T         una;  
         int                     step;          int                     step;
   
         hfont = CreateFont(16, 0, 0, 0, 0, 0, 0, 0,           hfont = CreateFont(16, 0, 0, 0, 0, 0, 0, 0, 
Line 73  static void viewasm_paint(NP2VIEW_T *vie Line 72  static void viewasm_paint(NP2VIEW_T *vie
                                 view->buf2.type = ALLOCTYPE_ASM;                                  view->buf2.type = ALLOCTYPE_ASM;
                                 view->buf2.arg = seg4 + view->off;                                  view->buf2.arg = seg4 + view->off;
                                 off = view->off;                                  off = view->off;
                                 unasm_reset(&fix);  
                                 for (i=0; i<255; i++) {                                  for (i=0; i<255; i++) {
                                         off &= 0xffff;                                          off &= 0xffff;
                                         *r++ = off;                                          *r++ = off;
Line 91  static void viewasm_paint(NP2VIEW_T *vie Line 89  static void viewasm_paint(NP2VIEW_T *vie
                                                 p = buf;                                                  p = buf;
                                                 viewmem_read(&(view->dmem), seg4 + off, buf, 16);                                                  viewmem_read(&(view->dmem), seg4 + off, buf, 16);
                                         }                                          }
                                         step = unasm(off, p, &fix, NULL);                                          step = unasm(NULL, p, 16, FALSE, off);
                                         off += (WORD)step;                                          off += (WORD)step;
                                 }                                  }
                                 *r = off;                                  *r = off;
Line 106  static void viewasm_paint(NP2VIEW_T *vie Line 104  static void viewasm_paint(NP2VIEW_T *vie
                 off = view->off;                  off = view->off;
         }          }
   
         unasm_reset(&fix);  
         for (y=0; y<rc->bottom; y+=16) {          for (y=0; y<rc->bottom; y+=16) {
                 wsprintf(str, "%04x:%04x", view->seg, off);                  wsprintf(str, "%04x:%04x", view->seg, off);
                 TextOut(hdc, 0, y, str, 9);                  TextOut(hdc, 0, y, str, 9);
Line 125  static void viewasm_paint(NP2VIEW_T *vie Line 122  static void viewasm_paint(NP2VIEW_T *vie
                         p = buf;                          p = buf;
                         viewmem_read(&(view->dmem), seg4 + off, buf, 16);                          viewmem_read(&(view->dmem), seg4 + off, buf, 16);
                 }                  }
                 step = unasm(off, p, &fix, &una);                  step = unasm(&una, p, 16, FALSE, off);
                 if (!step) {                  if (!step) {
                         break;                          break;
                 }                  }

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


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