comparison lc8951.c @ 2122:bb478feccca2

Cut down on debug print spam
author Michael Pavone <pavone@retrodev.com>
date Thu, 10 Mar 2022 22:07:45 -0800
parents bafb757e1cd2
children 28b6453cf7e3
comparison
equal deleted inserted replaced
2121:76ea19e8b1a9 2122:bb478feccca2
211 context->regs[STAT3] &= ~BIT_VALST; 211 context->regs[STAT3] &= ~BIT_VALST;
212 if (context->ctrl0 & BIT_WRRQ) { 212 if (context->ctrl0 & BIT_WRRQ) {
213 uint16_t block_start = (context->regs[PTL] | (context->regs[PTH] << 8)) & (sizeof(context->buffer)-1); 213 uint16_t block_start = (context->regs[PTL] | (context->regs[PTH] << 8)) & (sizeof(context->buffer)-1);
214 for (int reg = HEAD0; reg < PTL; reg++) 214 for (int reg = HEAD0; reg < PTL; reg++)
215 { 215 {
216 printf("Setting HEAD%d to buffer[%X]\n", reg - HEAD0, block_start);
217 context->regs[reg] =context->buffer[block_start++]; 216 context->regs[reg] =context->buffer[block_start++];
218 block_start &= (sizeof(context->buffer)-1); 217 block_start &= (sizeof(context->buffer)-1);
219 } 218 }
220 } 219 }
221 printf("Decode done %X:%X:%X mode %X\n", context->regs[HEAD0], context->regs[HEAD1], context->regs[HEAD2], context->regs[HEAD3]); 220 printf("Decode done %X:%X:%X mode %X\n", context->regs[HEAD0], context->regs[HEAD1], context->regs[HEAD2], context->regs[HEAD3]);
253 uint32_t step_diff = (context->cycle - cycle) / context->clock_step; 252 uint32_t step_diff = (context->cycle - cycle) / context->clock_step;
254 if (step_diff) { 253 if (step_diff) {
255 context->cycle -= step_diff * context->clock_step; 254 context->cycle -= step_diff * context->clock_step;
256 } 255 }
257 context->transfer_end = context->cycle + transfer_size * context->clock_step; 256 context->transfer_end = context->cycle + transfer_size * context->clock_step;
258 printf("RESUME: size %u, cycle %u, end %u\n", transfer_size, context->cycle, context->transfer_end);
259 if (step_diff) { 257 if (step_diff) {
260 lc8951_run(context, cycle); 258 lc8951_run(context, cycle);
261 } 259 }
262 } 260 }
263 } 261 }