|
|
| version 1.50, 2004/01/23 15:05:04 | version 1.51, 2004/01/23 16:57:20 |
|---|---|
| Line 574 void screenvsync(NEVENTITEM item) { | Line 574 void screenvsync(NEVENTITEM item) { |
| // --------------------------------------------------------------------------- | // --------------------------------------------------------------------------- |
| // #define IPTRACE (1 << 16) | // #define IPTRACE (1 << 12) |
| #if IPTRACE | #if defined(TRACE) && IPTRACE |
| static UINT trpos; | static UINT trpos = 0; |
| static UINT32 treip[IPTRACE]; | static UINT32 treip[IPTRACE]; |
| void iptrace_out(void) { | void iptrace_out(void) { |
| Line 667 void pccore_exec(BOOL draw) { | Line 667 void pccore_exec(BOOL draw) { |
| treip[trpos & (IPTRACE - 1)] = (CPU_CS << 16) + CPU_IP; | treip[trpos & (IPTRACE - 1)] = (CPU_CS << 16) + CPU_IP; |
| trpos++; | trpos++; |
| #endif | #endif |
| #if 0 | |
| if (tr) { | if (tr) { |
| if ((CPU_CS == 0xf760) || (CPU_CS == 0xf990)) { | if ((CPU_CS == 0xf760) || (CPU_CS == 0xf990)) { |
| TRACEOUT(("%.4x:%.4x", CPU_CS, CPU_IP)); | TRACEOUT(("%.4x:%.4x", CPU_CS, CPU_IP)); |
| } | } |
| } | } |
| #endif | |
| #if 0 | #if 0 |
| if ((tr & 2) && (mem[0x0471e] == '\\')) { | if ((tr & 2) && (mem[0x0471e] == '\\')) { |
| TRACEOUT(("DTA BREAK %.4x:%.4x", CPU_CS, CPU_IP)); | TRACEOUT(("DTA BREAK %.4x:%.4x", CPU_CS, CPU_IP)); |