Diff for /np2/i386c/ia32/debug.c between versions 1.11 and 1.12

version 1.11, 2004/07/29 13:06:08 version 1.12, 2005/03/05 16:47:04
Line 31 Line 31
   
 #include "cpu.h"  #include "cpu.h"
 #include "memory.h"  #include "memory.h"
 #ifdef USE_FPU  #if defined(USE_FPU)
 #include "instructions/fpu/fpu.h"  #include "instructions/fpu/fp.h"
 #endif  #endif
   
   
Line 82  cpu_reg2str(void) Line 82  cpu_reg2str(void)
         return buf;          return buf;
 }  }
   
 #ifdef USE_FPU  
 char *  
 fpu_reg2str(void)  
 {  
         static char buf[512];  
         char tmp[128];  
         int i;  
         int no;  
   
         strcpy(buf, "st=\n");  
         for (no = 0; no < 8; no++) {  
                 for (i = 9; i >= 0; i--) {  
                         snprintf(tmp, sizeof(tmp), "%02x", FPU_ST[no][i]);  
                         strcat(buf, tmp);  
                 }  
                 strcat(buf, "\n");  
         }  
   
         snprintf(tmp, sizeof(tmp),  
             "ctrl=%04x  status=%04x  tag=%04x\n"  
             "inst=%08x%04x  data=%08x%04x  op=%03x\n",  
             FPU_CTRLWORD,  
             FPU_STATUSWORD,  
             FPU_TAGWORD,  
             FPU_INSTPTR_OFFSET, FPU_INSTPTR_SEG,  
             FPU_DATAPTR_OFFSET, FPU_DATAPTR_SEG,  
             FPU_LASTINSTOP);  
         strcat(buf, tmp);  
   
         return buf;  
 }  
 #endif  
   
 static char *  static char *
 a20str(void)  a20str(void)
 {  {
Line 132  put_cpuinfo(void) Line 99  put_cpuinfo(void)
   
         strcpy(buf, cpu_reg2str());          strcpy(buf, cpu_reg2str());
         strcat(buf, "\n");          strcat(buf, "\n");
 #ifdef USE_FPU  #if defined(USE_FPU)
         strcat(buf, fpu_reg2str());          strcat(buf, fpu_reg2str());
         strcat(buf, "\n");          strcat(buf, "\n");
 #endif  #endif

Removed from v.1.11  
changed lines
  Added in v.1.12


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