Skip to content

Commit a120597

Browse files
committed
Add patch from Dag Lem, from bug #1219.
https://sourceforge.net/p/vice-emu/bugs/1219/?page=1#5c25 I added some parentheses because the compiler warned me about that. git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@45952 379a1393-f5fb-40a0-bcee-ef074d9b53f7
1 parent 93af298 commit a120597

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vice/src/core/ciacore.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,11 @@ void ciacore_reset(cia_context_t *cia_context)
689689
*/
690690
static inline void strange_extra_sdr_flags(cia_context_t *cia_context, CLOCK rclk, uint8_t byte)
691691
{
692+
if ((cia_context->sr_bits > 1 && cia_context->sr_bits < 15) ||
693+
(cia_context->sr_bits == 15 && !(cia_context->sdr_delay & (/*CIA_SDR_CNT1 | */CIA_SDR_CNT2)))) {
694+
schedule_sdr_alarm(cia_context, rclk, CIA_SDR_SET_SDR_IRQ2);
695+
}
696+
692697
if ((byte & CIA_CRA_SPMODE_OUT) == CIA_CRA_SPMODE_IN) {
693698
/* Switching from output to input */
694699
bool forceFinish = false;

0 commit comments

Comments
 (0)