# HG changeset patch # User Michael Pavone # Date 1648350651 25200 # Node ID 4cd60eecb0b1ca8849c7c6b1c8e7c680c34039cd # Parent 0c0d4233d826ad262567159cadd387176e72c43c Fix LC8951 cycle adjustment for data transfer next byte tracking diff -r 0c0d4233d826 -r 4cd60eecb0b1 lc8951.c --- a/lc8951.c Sat Mar 26 20:10:21 2022 -0700 +++ b/lc8951.c Sat Mar 26 20:10:51 2022 -0700 @@ -419,5 +419,8 @@ if (context->transfer_end != CYCLE_NEVER) { context->transfer_end -= deduction; } + if (context->next_byte_cycle != CYCLE_NEVER) { + context->next_byte_cycle -= deduction; + } printf("cycle is now %u, decode_end %u, transfer_end %u\n", context->cycle, context->decode_end, context->transfer_end); }