diff options
author | Michael Pavone <pavone@retrodev.com> | 2016-12-27 13:38:58 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2016-12-27 13:38:58 -0800 |
commit | abe03dab2125abc51b042ba1d001415e984575d4 (patch) | |
tree | fd8fe56299968f79df9e060fb68672e888d085f4 /vdp.c | |
parent | c0fa07690efd3128f971367346466964c2c13191 (diff) |
The function of the HVC Latch enable bit in mode register 1 is different when not in mode 5
Diffstat (limited to 'vdp.c')
-rw-r--r-- | vdp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2377,7 +2377,7 @@ uint16_t vdp_data_port_read(vdp_context * context) uint16_t vdp_hv_counter_read(vdp_context * context) { - if (context->regs[REG_MODE_1] & BIT_HVC_LATCH) { + if ((context->regs[REG_MODE_2] & BIT_MODE_5) && (context->regs[REG_MODE_1] & BIT_HVC_LATCH)) { return context->hv_latch; } uint32_t line= context->vcounter & 0xFF; |