Diff for /np2/trap/steptrap.c between versions 1.3 and 1.4

version 1.3, 2005/04/05 13:48:09 version 1.4, 2005/04/05 20:37:08
Line 1 Line 1
   
 // #define      IPTRACE                 (1 << 12)  #define IPTRACE                 (1 << 12)
   
 #include        "compiler.h"  #include        "compiler.h"
   
Line 17  static UINT32 treip[IPTRACE]; Line 17  static UINT32 treip[IPTRACE];
   
 void CPUCALL steptrap(UINT cs, UINT32 eip) {  void CPUCALL steptrap(UINT cs, UINT32 eip) {
   
 //      TRACEOUT(("%.4x:%.4x", CPU_CS, CPU_IP));  //      TRACEOUT(("%.4x:%.4x", cs, eip));
   
 #if IPTRACE  #if IPTRACE
         trcs[trpos & (IPTRACE - 1)] = cs;          trcs[trpos & (IPTRACE - 1)] = cs;
Line 29  void CPUCALL steptrap(UINT cs, UINT32 ei Line 29  void CPUCALL steptrap(UINT cs, UINT32 ei
 // ---- ここにトラップ条件コードを書きます  // ---- ここにトラップ条件コードを書きます
 //      return;  //      return;
   
   #if 1
   {
           static UINT tmp = 0;
           if (tmp != *(UINT16 *)(mem + 0xa0000 + 18 * 2)) {
                   TRACEOUT(("change text %.4x -> %.4x at %.4x:%.4x", tmp, *(UINT16 *)(mem + 0xa0000 + 18 * 2), cs, eip));
                   tmp = *(UINT16 *)(mem + 0xa0000 + 18 * 2);
                   if (tmp == 0x4303) {
                           steptrap_hisfileout();
                   }
           }
   }
   #endif
   
   
         // IDEテスト用          // IDEテスト用
 #if 0  #if 0

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


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