Previous 15994 Revisions Next

r5926 Wednesday 30th September, 2009 at 13:29:02 UTC by Curt Coder
[MIKROMIK] Added FDC reset and ready signals.
[src/mess/drivers]mikromik.c

src/mess/drivers/mikromik.c
r5925r5926
9292   case 1: /* RECALL */
9393      //logerror("RECALL %u\n", d);
9494      state->recall = d;
95      nec765_reset_w(state->upd765, d);
9596      break;
9697
9798   case 2: /* _RV28/RX21 */
r5925r5926
118119      //logerror("MOTOR %u\n", d);
119120      floppy_drive_set_motor_state(get_floppy_image(space->machine, 0), d);
120121      floppy_drive_set_ready_state(get_floppy_image(space->machine, 0), d, 1);
122
123      if (input_port_read(space->machine, "T5")) nec765_ready_w(state->upd765, d);
121124      break;
122125   }
123126}
r5925r5926
245248   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("CTRL") PORT_CODE(KEYCODE_LCONTROL) PORT_CHAR(UCHAR_MAMEKEY(LCONTROL))
246249   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Left SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1)
247250   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("Right SHIFT") PORT_CODE(KEYCODE_RSHIFT)
251
252   PORT_START("T5")
253   PORT_CONFNAME( 0x01, 0x01, "Floppy Drive Type")
254   PORT_CONFSETTING( 0x00, "640 KB" )
255   PORT_CONFSETTING( 0x01, "160/320 KB" )
248256INPUT_PORTS_END
249257
250258/* Video */
r5925r5926
603611
604612static MACHINE_RESET( mm1 )
605613{
614   mm1_state *state = machine->driver_data;
606615   const address_space *program = cputag_get_address_space(machine, I8085A_TAG, ADDRESS_SPACE_PROGRAM);
607616
608617   memory_install_readwrite8_handler(program, 0x0000, 0x0fff, 0, 0, SMH_BANK(1), SMH_UNMAP);
609618   memory_set_bank(machine, 1, 0);
619
620   if (!input_port_read(machine, "T5")) nec765_ready_w(state->upd765, 1);
610621}
611622
612623static FLOPPY_OPTIONS_START( mm1 )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team