# HG changeset patch # User Michael Pavone # Date 1704435269 28800 # Node ID ed7b4d869989949a1af1069f5f65c5ab2adf235c # Parent efd2242c2c23a2c0a9c4e6ac648904de3d4591cb Fix nmi_start not getting adjusted during a cycle adjustment diff -r efd2242c2c23 -r ed7b4d869989 z80_to_x86.c --- a/z80_to_x86.c Thu Jan 04 22:13:46 2024 -0800 +++ b/z80_to_x86.c Thu Jan 04 22:14:29 2024 -0800 @@ -3787,6 +3787,13 @@ } } } + if (context->nmi_start != CYCLE_NEVER) { + if (context->nmi_start < deduction) { + context->nmi_start = 0; + } else { + context->nmi_start -= deduction; + } + } } uint32_t zbreakpoint_patch(z80_context * context, uint16_t address, code_ptr dst)