--- previous/src/dsp/dsp_disasm.c 2018/04/24 19:30:25 1.1 +++ previous/src/dsp/dsp_disasm.c 2018/04/24 19:32:02 1.1.1.2 @@ -24,6 +24,7 @@ #endif #include +#include #include #include #include @@ -542,8 +543,8 @@ Uint16 dsp56k_disasm(dsp_trace_disasm_t const char* dsp56k_getInstructionText(void) { const int len = sizeof(str_instr); - Uint64 count, cycles; - Uint16 cycle_diff; + Uint64 count, cycles = 0; + Uint16 cycle_diff = 0; float percentage; int offset; @@ -555,7 +556,7 @@ const char* dsp56k_getInstructionText(vo } else { offset = sprintf(str_instr2, "p:%04x %06x %06x (%02d cyc) %-*s\n", prev_inst_pc, cur_inst, read_memory(prev_inst_pc + 1), dsp_core.instr_cycle, len, str_instr); } - if (offset > 2 && Profile_DspAddressData(prev_inst_pc, &percentage, &count/*, &cycles, &cycle_diff*/)) { + if (offset > 2 && Profile_DspAddressData(prev_inst_pc, (Uint32*)&percentage, (Uint32*)&count/*, &cycles, &cycle_diff*/)) { offset -= 2; sprintf(str_instr2+offset, "%5.2f%% (%"PRId64", %"PRId64", %d)\n", percentage, count, cycles, cycle_diff);