diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-01-17 09:18:16 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-01-17 09:18:16 -0800 |
commit | 4e1834ec70e642276d8ba0a74eea5caa07fde165 (patch) | |
tree | 8bbe4e1df4193fdaf0c4a0421a3ae2769e4ec2ea /vdp.c | |
parent | 53f7ba11cd4969d80d3d38f8321b224fd2d7006e (diff) |
Fix line advancement in Mode 4 during inactive display. Fix a Mode 4 VInt timing discrepency
Diffstat (limited to 'vdp.c')
-rw-r--r-- | vdp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2151,7 +2151,7 @@ static void vdp_inactive(vdp_context *context, uint32_t target_cycles, uint8_t i index_reset_value = 0; vint_line = context->inactive_start + 1; vint_slot = VINT_SLOT_MODE4; - line_change = LINE_CHANGE_H40; + line_change = LINE_CHANGE_MODE4; bg_color = render_map_color(0, 0, 0); jump_start = 147; jump_dest = 233; @@ -2794,7 +2794,7 @@ uint32_t vdp_next_vint_z80(vdp_context * context) } } } else { - if (context->hslot >= LINE_CHANGE_H40) { + if (context->hslot >= LINE_CHANGE_MODE4) { return context->cycles + (VINT_SLOT_MODE4 + 256 - context->hslot) * MCLKS_SLOT_H32; } if (context->hslot <= VINT_SLOT_MODE4) { |