X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=mercenary-reloaded.git;a=blobdiff_plain;f=src%2Flibcpu%2Fexecute.c;h=9d3180e49d8d199f020d2d1eb2888ad3c1cc80f3;hp=0b53f23dbd679d667daed682efdc79e6e710a8c8;hb=99218ad73b476cad66afa0efb8de9c763108747b;hpb=f9e72953571609089acedec0ce3e275cf63ef008 diff --git a/src/libcpu/execute.c b/src/libcpu/execute.c index 0b53f23..9d3180e 100644 --- a/src/libcpu/execute.c +++ b/src/libcpu/execute.c @@ -20,6 +20,7 @@ #include #include #include +#include "../libsdl/print.h" #include "execute.h" #include "m68k.h" #include "m68kcpu.h" @@ -175,7 +176,7 @@ int execute_cpu(int irq, const struct cpu_stop stop_at[], int *event) /* checking if game does not hit any 'stop_at' break point, give error output */ if (instruction_count >= 10000000) { if (instruction_count == 10000000) - fprintf(stderr, "!!! games seems to got stuck in an endless loop, please fix !!!\n"); + print_error("!!! games seems to got stuck in an endless loop, please fix !!!\n"); fprintf(stderr, "program counter at: %06x\n", REG_PC); if (instruction_count == 10000020) break; @@ -184,7 +185,7 @@ int execute_cpu(int irq, const struct cpu_stop stop_at[], int *event) for (i = 0; stop_at[i].event; i++) { if (REG_PC == stop_at[i].pc) { #ifdef DEBUG_CPU - printf("execution to address 0x%06x took %d opcodes\n", REG_PC, instruction_count); + print_error("execution to address 0x%06x took %d opcodes\n", REG_PC, instruction_count); #endif *event = stop_at[i].event; return cycle_count;