|
|
| version 1.3, 2004/01/13 16:38:49 | version 1.4, 2004/01/14 16:14:49 |
|---|---|
| Line 199 show_profile_ea(void) | Line 199 show_profile_ea(void) |
| #ifdef IA32_INSTRUCTION_TRACE | #ifdef IA32_INSTRUCTION_TRACE |
| static FILE *fp = NULL; | static FILE *fp = NULL; |
| BOOL cpu_inst_trace = FALSE; | |
| static const char *opcode_1byte[2][256] = { | static const char *opcode_1byte[2][256] = { |
| /* 16bit */ | /* 16bit */ |
| Line 651 exec_1step(void) | Line 652 exec_1step(void) |
| int num = 0; | int num = 0; |
| int i; | int i; |
| if (fp == NULL) { | if (cpu_inst_trace && (fp == NULL)) { |
| fp = fopen("ia32trace.txt", "a"); | fp = fopen("ia32trace.txt", "a"); |
| } | } |
| fprintf(fp, "%04x:%08x:", CPU_CS, CPU_EIP); | if (fp) { |
| fprintf(fp, "%04x:%08x:", CPU_CS, CPU_EIP); | |
| } | |
| #endif | #endif |
| for (prefix = 0; prefix < MAX_PREFIX; prefix++) { | for (prefix = 0; prefix < MAX_PREFIX; prefix++) { |