Exemple #1
0
void peribox_device::device_start(void)
{
	if (VERBOSE>7) LOG("Peribox started\n");

	floppy_drive_set_rpm(subdevice(FLOPPY_0), 300.);
	floppy_drive_set_rpm(subdevice(FLOPPY_1), 300.);
	floppy_drive_set_rpm(subdevice(FLOPPY_2), 300.);
	floppy_drive_set_rpm(subdevice(FLOPPY_3), 300.);
}
Exemple #2
0
static DEVICE_RESET( micropolis )
{
	micropolis_state *w = get_safe_token(device);
	int i;

	/* set the default state of some input lines */
	for (i = 0; i < 4; i++)
	{
		if(w->intf->floppy_drive_tags[i]!=NULL) {
			device_t *img = NULL;

			if (device->owner() != NULL)
				img = device->owner()->subdevice(w->intf->floppy_drive_tags[i]);
				if (img == NULL) {
					img = device->machine().device(w->intf->floppy_drive_tags[i]);
				}

			else
				img = device->machine().device(w->intf->floppy_drive_tags[i]);

			if (img!=NULL) {
				floppy_drive_set_controller(img,device);
				floppy_drive_set_rpm( img, 300.);
			}
		}
	}

	micropolis_set_drive(device, 0);

	w->drive_num = 0;
	w->sector = 0;
	w->track = 0;
	w->sector_length = 270;
	w->status = 0;
}
Exemple #3
0
void rx01_device::device_reset()
{
	for(int i=0;i<2;i++)
	{
		floppy_mon_w(m_image[i], 0); // turn it on
		floppy_drive_set_controller(m_image[i], this);
		floppy_drive_set_rpm(m_image[i], 360.);
	}
}