Mercurial > repos > blastem
comparison sms.c @ 1119:55ea7f9a4e92
Fix clearing of interrupt pending flags on control port read in PBC mode
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 22 Dec 2016 20:39:35 -0800 |
parents | 928a65750345 |
children | e9369d6f0101 |
comparison
equal
deleted
inserted
replaced
1118:c48d5191ddc9 | 1119:55ea7f9a4e92 |
---|---|
54 { | 54 { |
55 z80_context *z80 = vcontext; | 55 z80_context *z80 = vcontext; |
56 sms_context *sms = z80->system; | 56 sms_context *sms = z80->system; |
57 vdp_run_context(sms->vdp, z80->current_cycle); | 57 vdp_run_context(sms->vdp, z80->current_cycle); |
58 if (location & 1) { | 58 if (location & 1) { |
59 sms->vdp->flags &= ~(FLAG2_VINT_PENDING|FLAG2_HINT_PENDING); | 59 sms->vdp->flags2 &= ~(FLAG2_VINT_PENDING|FLAG2_HINT_PENDING); |
60 update_interrupts(sms); | 60 update_interrupts(sms); |
61 return vdp_control_port_read(sms->vdp); | 61 return vdp_control_port_read(sms->vdp); |
62 } else { | 62 } else { |
63 return vdp_data_port_read(sms->vdp); | 63 return vdp_data_port_read(sms->vdp); |
64 } | 64 } |