Mercurial > repos > blastem
diff vdp.c @ 708:61faa298af07
Small horizontal interrupt fixes
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 14 May 2015 23:17:55 -0700 |
parents | ce4046476abc |
children | 4cd8823f79e3 |
line wrap: on
line diff
--- a/vdp.c Thu May 14 00:04:22 2015 -0700 +++ b/vdp.c Thu May 14 23:17:55 2015 -0700 @@ -1476,7 +1476,7 @@ } } if (is_h40 && slot == LINE_CHANGE_H40 || !is_h40 && slot == LINE_CHANGE_H32) { - if (line >= inactive_start) { + if (line > inactive_start) { context->hint_counter = context->regs[REG_HINT]; } else if (context->hint_counter) { context->hint_counter--; @@ -1954,7 +1954,7 @@ } uint32_t inactive_start = context->latched_mode & BIT_PAL ? PAL_INACTIVE_START : NTSC_INACTIVE_START; uint32_t hint_line; - if (context->vcounter >= inactive_start) { + if (context->vcounter + context->hint_counter >= inactive_start) { hint_line = context->regs[REG_HINT]; } else { hint_line = context->vcounter + context->hint_counter + 1;