--- Frodo4/Src/CIA_SC.cpp 2003/07/01 17:51:17 1.2 +++ Frodo4/Src/CIA_SC.cpp 2010/04/21 19:54:13 1.7 @@ -1,7 +1,7 @@ /* * CIA_SC.cpp - Single-cycle 6526 emulation * - * Frodo (C) 1994-1997,2002-2003 Christian Bauer + * Frodo Copyright (C) Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -58,7 +58,7 @@ enum { T_LOAD_THEN_COUNT, T_LOAD_THEN_WAIT_THEN_COUNT, T_COUNT, - T_COUNT_THEN_STOP, + T_COUNT_THEN_STOP }; @@ -93,6 +93,7 @@ void MOS6526::Reset(void) ta_cnt_phi2 = tb_cnt_phi2 = tb_cnt_ta = false; ta_irq_next_cycle = tb_irq_next_cycle = false; + has_new_cra = has_new_crb = false; ta_state = tb_state = T_STOP; } @@ -599,7 +600,7 @@ ta_idle: case T_LOAD_THEN_COUNT: tb_state = T_COUNT; tb = latchb; // Reload timer - goto ta_idle; + goto tb_idle; case T_LOAD_THEN_WAIT_THEN_COUNT: tb_state = T_WAIT_THEN_COUNT; if (tb == 1)