# HG changeset patch # User Michael Pavone # Date 1643706462 28800 # Node ID c534a319902044c59b7c1d926ef11d9df3bf2306 # Parent c3241eff3c3a61a81a57f652f99ad0da09ee7b70 Fix CDD int cycle calculation diff -r c3241eff3c3a -r c534a3199020 cdd_mcu.c --- a/cdd_mcu.c Mon Jan 31 22:07:51 2022 -0800 +++ b/cdd_mcu.c Tue Feb 01 01:07:42 2022 -0800 @@ -486,7 +486,7 @@ } if (context->current_status_nibble == 7) { context->int_pending = 1; - context->next_int_cycle = cd_block_to_mclks(cycle + SECTOR_CLOCKS); + context->next_int_cycle = cd_block_to_mclks(context->cycle + SECTOR_CLOCKS); } context->current_status_nibble++; context->last_nibble_cycle = context->cycle; @@ -544,6 +544,7 @@ context->last_subcode_cycle = CYCLE_NEVER; context->next_int_cycle = CYCLE_NEVER; context->last_nibble_cycle = CYCLE_NEVER; + context->last_byte_cycle = CYCLE_NEVER; context->current_status_nibble = -1; context->current_cmd_nibble = -1; }