comparison z80_to_x86.c @ 2412:ed7b4d869989

Fix nmi_start not getting adjusted during a cycle adjustment
author Michael Pavone <pavone@retrodev.com>
date Thu, 04 Jan 2024 22:14:29 -0800
parents c97609fe8315
children cc07f544c620
comparison
equal deleted inserted replaced
2411:efd2242c2c23 2412:ed7b4d869989
3785 } else { 3785 } else {
3786 context->int_pulse_start -= deduction; 3786 context->int_pulse_start -= deduction;
3787 } 3787 }
3788 } 3788 }
3789 } 3789 }
3790 if (context->nmi_start != CYCLE_NEVER) {
3791 if (context->nmi_start < deduction) {
3792 context->nmi_start = 0;
3793 } else {
3794 context->nmi_start -= deduction;
3795 }
3796 }
3790 } 3797 }
3791 3798
3792 uint32_t zbreakpoint_patch(z80_context * context, uint16_t address, code_ptr dst) 3799 uint32_t zbreakpoint_patch(z80_context * context, uint16_t address, code_ptr dst)
3793 { 3800 {
3794 code_info code = { 3801 code_info code = {