From aa45db4e8ec1f837741a910f8b1b8cebc3dcd6e5 Mon Sep 17 00:00:00 2001 From: Robbbert Date: Tue, 9 Jul 2013 11:17:11 +0000 Subject: (MESS) TX0 : Fixed paper tape reader [Robbbert] (out of whatsnew) Since this system is very much like the pdp1, it is assumed the same mods are needed. However there is no software available in the required format to test with. --- src/emu/cpu/pdp1/tx0.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/emu/cpu/pdp1') diff --git a/src/emu/cpu/pdp1/tx0.c b/src/emu/cpu/pdp1/tx0.c index 3f2bc7e2910..01c41b3f1d1 100644 --- a/src/emu/cpu/pdp1/tx0.c +++ b/src/emu/cpu/pdp1/tx0.c @@ -171,7 +171,6 @@ static CPU_EXECUTE( tx0_64kw ) if (cpustate->ioh && cpustate->ios) { cpustate->ioh = 0; - cpustate->ios = 0; } @@ -187,6 +186,7 @@ static CPU_EXECUTE( tx0_64kw ) if (cpustate->iface->io_handlers[io_handler_rim]) (*cpustate->iface->io_handlers[io_handler_rim])(device); /* data will be transferred to AC */ cpustate->rim_step = 1; + cpustate->ios = 0; break; case 1: @@ -221,6 +221,7 @@ static CPU_EXECUTE( tx0_64kw ) if (cpustate->iface->io_handlers[io_handler_rim]) (*cpustate->iface->io_handlers[io_handler_rim])(device); /* data will be transferred to AC */ cpustate->rim_step = 3; + cpustate->ios = 0; break; case 3: @@ -277,7 +278,6 @@ static CPU_EXECUTE( tx0_8kw ) if (cpustate->ioh && cpustate->ios) { cpustate->ioh = 0; - cpustate->ios = 0; } @@ -293,6 +293,7 @@ static CPU_EXECUTE( tx0_8kw ) if (cpustate->iface->io_handlers[io_handler_rim]) (*cpustate->iface->io_handlers[io_handler_rim])(device); /* data will be transferred to AC */ cpustate->rim_step = 1; + cpustate->ios = 0; break; case 1: @@ -327,6 +328,7 @@ static CPU_EXECUTE( tx0_8kw ) if (cpustate->iface->io_handlers[io_handler_rim]) (*cpustate->iface->io_handlers[io_handler_rim])(device); /* data will be transferred to AC */ cpustate->rim_step = 3; + cpustate->ios = 0; break; case 3: @@ -415,7 +417,7 @@ static CPU_SET_INFO( tx0 ) case CPUINFO_INT_REGISTER + TX0_RIM: cpustate->rim = info->i ? 1 : 0; break; case CPUINFO_INT_REGISTER + TX0_CYCLE: if (LOG) logerror("tx0_set_reg to cycle counter ignored\n");/* no way!*/ break; case CPUINFO_INT_REGISTER + TX0_IOH: if (LOG) logerror("tx0_set_reg to ioh flip-flop ignored\n");/* no way!*/ break; - case CPUINFO_INT_REGISTER + TX0_IOS: if (LOG) logerror("tx0_set_reg to ios flip-flop ignored\n");/* no way!*/ break; + case CPUINFO_INT_REGISTER + TX0_IOS: cpustate->ios = info->i ? 1 : 0; break; case CPUINFO_INT_REGISTER + TX0_RESET: pulse_reset(device); break; case CPUINFO_INT_REGISTER + TX0_IO_COMPLETE:cpustate->ios = 1; break; } -- cgit v1.2.3-70-g09d2