src/mess/machine/amigacd.c
| r6754 | r6755 | |
| 518 | 518 | |
| 519 | 519 | /* set up DMAC with autoconfig */ |
| 520 | 520 | amiga_add_autoconfig( machine, &dmac_device ); |
| 521 | |
| 522 | matsucd_init( devtag_get_device(machine, "cdrom"), "cdda" ); |
| 521 | 523 | } |
| 522 | 524 | |
| 523 | 525 | MACHINE_RESET( amigacd ) |
| 524 | 526 | { |
| 525 | 527 | /* initialize the cdrom */ |
| 526 | | matsucd_init( devtag_get_device(machine, "cdrom"), "cdda" ); |
| 527 | 528 | matsucd_set_status_enabled_callback( cdrom_status_enabled ); |
| 528 | 529 | matsucd_set_status_changed_callback( cdrom_status_change ); |
| 529 | 530 | matsucd_set_subcode_ready_callback( cdrom_subcode_ready ); |
src/mess/machine/lisa.c
| r6754 | r6755 | |
| 764 | 764 | { |
| 765 | 765 | COPS_Ready = 0; |
| 766 | 766 | |
| 767 | | /* read command every ms (don't know the real value) */ |
| 768 | | timer_pulse(machine, ATTOTIME_IN_MSEC(1), NULL, 0, set_COPS_ready); |
| 769 | | |
| 770 | 767 | reset_COPS(); |
| 771 | 768 | } |
| 772 | 769 | |
| r6754 | r6755 | |
| 1137 | 1134 | bad_parity_table = auto_alloc_array(machine, UINT8, 0x40000); /* 1 bit per byte of CPU RAM */ |
| 1138 | 1135 | } |
| 1139 | 1136 | |
| 1140 | | MACHINE_RESET( lisa ) |
| 1137 | MACHINE_START( lisa ) |
| 1141 | 1138 | { |
| 1142 | 1139 | mouse_timer = timer_alloc(machine, handle_mouse, NULL); |
| 1143 | 1140 | |
| 1141 | /* read command every ms (don't know the real value) */ |
| 1142 | timer_pulse(machine, ATTOTIME_IN_MSEC(1), NULL, 0, set_COPS_ready); |
| 1143 | } |
| 1144 | |
| 1145 | MACHINE_RESET( lisa ) |
| 1146 | { |
| 1144 | 1147 | lisa_ram_ptr = memory_region(machine, "maincpu") + RAM_OFFSET; |
| 1145 | 1148 | lisa_rom_ptr = memory_region(machine, "maincpu") + ROM_OFFSET; |
| 1146 | 1149 | |
src/mess/machine/lynx.c
| r6754 | r6755 | |
| 1815 | 1815 | } |
| 1816 | 1816 | |
| 1817 | 1817 | static void lynx_reset(running_machine *machine) |
| 1818 | | { |
| 1819 | | int i; |
| 1818 | { |
| 1820 | 1819 | lynx_memory_config_w(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0, 0); |
| 1821 | 1820 | |
| 1822 | 1821 | cputag_set_input_line(machine, "maincpu", M65SC02_IRQ_LINE, CLEAR_LINE); |
| r6754 | r6755 | |
| 1837 | 1836 | |
| 1838 | 1837 | lynx_uart_reset(); |
| 1839 | 1838 | |
| 1840 | | for (i = 0; i < NR_LYNX_TIMERS; i++) |
| 1841 | | lynx_timer_init(machine, i); |
| 1842 | | |
| 1843 | 1839 | lynx_audio_reset(); |
| 1844 | 1840 | |
| 1845 | 1841 | // hack to allow current object loading to work |
| r6754 | r6755 | |
| 1858 | 1854 | |
| 1859 | 1855 | MACHINE_START( lynx ) |
| 1860 | 1856 | { |
| 1857 | int i; |
| 1861 | 1858 | state_save_register_global(machine, lynx_memory_config); |
| 1862 | 1859 | state_save_register_global_pointer(machine, lynx_mem_fe00, lynx_mem_fe00_size); |
| 1863 | 1860 | state_save_register_postload(machine, lynx_postload, NULL); |
| r6754 | r6755 | |
| 1870 | 1867 | memset(&suzy, 0, sizeof(suzy)); |
| 1871 | 1868 | |
| 1872 | 1869 | add_reset_callback(machine, lynx_reset); |
| 1870 | |
| 1871 | for (i = 0; i < NR_LYNX_TIMERS; i++) |
| 1872 | lynx_timer_init(machine, i); |
| 1873 | |
| 1873 | 1874 | } |
| 1874 | 1875 | |
| 1875 | 1876 | |
src/mess/machine/pc.c
| r6754 | r6755 | |
| 546 | 546 | pcjr_keyb.transferring = 0; |
| 547 | 547 | pcjr_keyb.latch = 0; |
| 548 | 548 | pcjr_keyb.raw_keyb_data = 0; |
| 549 | | pcjr_keyb.keyb_signal_timer = timer_alloc(machine, pcjr_keyb_signal_callback, NULL ); |
| 550 | 549 | pc_keyb_set_clock( 1 ); |
| 551 | 550 | } |
| 552 | 551 | |
| r6754 | r6755 | |
| 1365 | 1364 | MACHINE_START( pcjr ) |
| 1366 | 1365 | { |
| 1367 | 1366 | pc_fdc_init( machine, &pcjr_fdc_interface_nc ); |
| 1367 | pcjr_keyb.keyb_signal_timer = timer_alloc(machine, pcjr_keyb_signal_callback, NULL ); |
| 1368 | pc_int_delay_timer = timer_alloc(machine, pcjr_delayed_pic8259_irq, NULL ); |
| 1368 | 1369 | } |
| 1369 | 1370 | |
| 1370 | 1371 | |
| r6754 | r6755 | |
| 1388 | 1389 | speaker_level_w( speaker, 0 ); |
| 1389 | 1390 | |
| 1390 | 1391 | pcjr_keyb_init(machine); |
| 1391 | | pc_int_delay_timer = timer_alloc(machine, pcjr_delayed_pic8259_irq, NULL ); |
| 1392 | 1392 | } |
| 1393 | 1393 | |
| 1394 | 1394 | |
src/mess/drivers/cdi.c
| r6754 | r6755 | |
| 4493 | 4493 | scc68070_register_globals(machine); |
| 4494 | 4494 | cdic_register_globals(machine); |
| 4495 | 4495 | slave_register_globals(machine); |
| 4496 | | } |
| 4497 | 4496 | |
| 4498 | | static MACHINE_RESET( cdi ) |
| 4499 | | { |
| 4500 | | UINT16 *src = (UINT16*)memory_region(machine, "maincpu"); |
| 4501 | | UINT16 *dst = planea; |
| 4502 | | const device_config *cdrom_dev = devtag_get_device(machine, "cdrom"); |
| 4503 | | memcpy(dst, src, 0x8); |
| 4504 | | |
| 4505 | | scc68070_init(machine, &scc68070_regs); |
| 4506 | | cdic_init(machine, &cdic_regs); |
| 4507 | | slave_init(machine, &slave_regs); |
| 4508 | | |
| 4509 | 4497 | scc68070_regs.timers.timer0_timer = timer_alloc(machine, scc68070_timer0_callback, 0); |
| 4510 | 4498 | timer_adjust_oneshot(scc68070_regs.timers.timer0_timer, attotime_never, 0); |
| 4511 | 4499 | |
| r6754 | r6755 | |
| 4520 | 4508 | |
| 4521 | 4509 | cdic_regs.audio_sample_timer = timer_alloc(machine, audio_sample_trigger, 0); |
| 4522 | 4510 | timer_adjust_oneshot(cdic_regs.audio_sample_timer, attotime_never, 0); |
| 4511 | } |
| 4523 | 4512 | |
| 4513 | static MACHINE_RESET( cdi ) |
| 4514 | { |
| 4515 | UINT16 *src = (UINT16*)memory_region(machine, "maincpu"); |
| 4516 | UINT16 *dst = planea; |
| 4517 | const device_config *cdrom_dev = devtag_get_device(machine, "cdrom"); |
| 4518 | memcpy(dst, src, 0x8); |
| 4519 | |
| 4520 | scc68070_init(machine, &scc68070_regs); |
| 4521 | cdic_init(machine, &cdic_regs); |
| 4522 | slave_init(machine, &slave_regs); |
| 4523 | |
| 4524 | 4524 | if( cdrom_dev ) |
| 4525 | 4525 | { |
| 4526 | 4526 | cdic_regs.cd = mess_cd_get_cdrom_file(cdrom_dev); |
src/mess/drivers/junior.c
| r6754 | r6755 | |
| 174 | 174 | { |
| 175 | 175 | state_save_register_item(machine, "junior", NULL, 0, junior_port_a ); |
| 176 | 176 | state_save_register_item(machine, "junior", NULL, 0, junior_port_b ); |
| 177 | timer_pulse(machine, ATTOTIME_IN_HZ(50), NULL, 0, junior_update_leds ); |
| 177 | 178 | } |
| 178 | 179 | |
| 179 | 180 | |
| r6754 | r6755 | |
| 181 | 182 | { |
| 182 | 183 | int i; |
| 183 | 184 | |
| 184 | | timer_pulse(machine, ATTOTIME_IN_HZ(50), NULL, 0, junior_update_leds ); |
| 185 | | |
| 186 | 185 | for ( i = 0; i < 6; i++ ) |
| 187 | 186 | { |
| 188 | 187 | junior_led_time[i] = 0; |