Mercurial > repos > blastem
changeset 2078:c534a3199020
Fix CDD int cycle calculation
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 01 Feb 2022 01:07:42 -0800 |
parents | c3241eff3c3a |
children | 5a2b759f6b2d |
files | cdd_mcu.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; }