src/mess/machine/apple2gs.c
| r6777 | r6778 | |
| 1720 | 1720 | |
| 1721 | 1721 | MACHINE_RESET( apple2gs ) |
| 1722 | 1722 | { |
| 1723 | | apple2gs_clock_timer = timer_alloc(machine, apple2gs_clock_tick, NULL); |
| 1724 | | timer_adjust_periodic(apple2gs_clock_timer, ATTOTIME_IN_SEC(1), 0, ATTOTIME_IN_SEC(1)); |
| 1725 | | |
| 1726 | | apple2gs_qsecond_timer = timer_alloc(machine, apple2gs_qsecond_tick, NULL); |
| 1727 | | timer_adjust_periodic(apple2gs_qsecond_timer, ATTOTIME_IN_USEC(266700), 0, ATTOTIME_IN_USEC(266700)); |
| 1728 | | |
| 1729 | | apple2gs_scanline_timer = timer_alloc(machine, apple2gs_scanline_tick, NULL); |
| 1730 | | timer_adjust_oneshot(apple2gs_scanline_timer, attotime_never, 0); |
| 1731 | | |
| 1732 | | // fire on scanline zero |
| 1733 | | timer_adjust_oneshot(apple2gs_scanline_timer, video_screen_get_time_until_pos(machine->primary_screen, 0, 0), 0); |
| 1723 | /* Something needs to be here? |
| 1724 | When F3 pressed, the video mode changes and the machine goes into Basic */ |
| 1734 | 1725 | } |
| 1735 | 1726 | |
| 1736 | 1727 | MACHINE_START( apple2gs ) |
| r6777 | r6778 | |
| 1831 | 1822 | state_save_register_item(machine, "SNDGLUCTRL", NULL,0, sndglu_ctrl); |
| 1832 | 1823 | state_save_register_item(machine, "SNDGLUADDR", NULL,0, sndglu_addr); |
| 1833 | 1824 | state_save_register_item(machine, "SNDGLUDUMMYRD", NULL,0, sndglu_dummy_read); |
| 1825 | |
| 1826 | apple2gs_clock_timer = timer_alloc(machine, apple2gs_clock_tick, NULL); |
| 1827 | timer_adjust_periodic(apple2gs_clock_timer, ATTOTIME_IN_SEC(1), 0, ATTOTIME_IN_SEC(1)); |
| 1828 | |
| 1829 | apple2gs_qsecond_timer = timer_alloc(machine, apple2gs_qsecond_tick, NULL); |
| 1830 | timer_adjust_periodic(apple2gs_qsecond_timer, ATTOTIME_IN_USEC(266700), 0, ATTOTIME_IN_USEC(266700)); |
| 1831 | |
| 1832 | apple2gs_scanline_timer = timer_alloc(machine, apple2gs_scanline_tick, NULL); |
| 1833 | timer_adjust_oneshot(apple2gs_scanline_timer, attotime_never, 0); |
| 1834 | |
| 1835 | // fire on scanline zero |
| 1836 | timer_adjust_oneshot(apple2gs_scanline_timer, video_screen_get_time_until_pos(machine->primary_screen, 0, 0), 0); |
| 1834 | 1837 | } |
src/mess/machine/cgenie.c
| r6777 | r6778 | |
| 128 | 128 | |
| 129 | 129 | cass_level = 0; |
| 130 | 130 | cass_bit = 1; |
| 131 | | timer_pulse(machine, ATTOTIME_IN_HZ(11025), NULL, 0, handle_cassette_input ); |
| 132 | 131 | } |
| 133 | 132 | |
| 134 | 133 | MACHINE_START( cgenie ) |
| r6777 | r6778 | |
| 158 | 157 | memory_install_write8_handler(space, 0x4000, 0x4000 + messram_get_size(devtag_get_device(machine, "messram")) - 1, 0, 0, cgenie_videoram_w); |
| 159 | 158 | machine->generic.videoram.u8 = messram_get_ptr(devtag_get_device(machine, "messram")); |
| 160 | 159 | memory_set_bankptr(machine, "bank1", messram_get_ptr(devtag_get_device(machine, "messram"))); |
| 160 | timer_pulse(machine, ATTOTIME_IN_HZ(11025), NULL, 0, handle_cassette_input ); |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | /************************************* |
src/mess/drivers/adam.c
| r6777 | r6778 | |
| 595 | 595 | static MACHINE_START( adam ) |
| 596 | 596 | { |
| 597 | 597 | TMS9928A_configure(&tms9928a_interface); |
| 598 | timer_pulse(machine, ATTOTIME_IN_MSEC(20), NULL, 0, adam_paddle_callback); |
| 598 | 599 | } |
| 599 | 600 | |
| 600 | 601 | static MACHINE_RESET( adam ) |
| r6777 | r6778 | |
| 622 | 623 | adam_clear_keyboard_buffer(); |
| 623 | 624 | |
| 624 | 625 | memset(&memory_region(machine, "maincpu")[0x0000], 0xFF, 0x20000); /* Initializing RAM */ |
| 625 | | timer_pulse(machine, ATTOTIME_IN_MSEC(20), NULL, 0, adam_paddle_callback); |
| 626 | 626 | } |
| 627 | 627 | |
| 628 | 628 | static const floppy_config adam_floppy_config = |
src/mess/drivers/atom.c
| r6777 | r6778 | |
| 299 | 299 | MDRV_CPU_ADD("maincpu", M65C02, X2 / 4) |
| 300 | 300 | MDRV_CPU_PROGRAM_MAP(atom_mem) |
| 301 | 301 | |
| 302 | | MDRV_MACHINE_RESET( atom ) |
| 302 | MDRV_MACHINE_START( atom ) |
| 303 | 303 | |
| 304 | 304 | MDRV_I8255A_ADD( "ppi8255", atom_8255_int ) |
| 305 | 305 | |
| r6777 | r6778 | |
| 344 | 344 | MDRV_CPU_MODIFY( "maincpu" ) |
| 345 | 345 | MDRV_CPU_PROGRAM_MAP(atomeb_mem) |
| 346 | 346 | |
| 347 | | MDRV_MACHINE_RESET( atomeb ) |
| 347 | MDRV_MACHINE_START( atomeb ) |
| 348 | 348 | MACHINE_DRIVER_END |
| 349 | 349 | |
| 350 | 350 | |
src/mess/drivers/avigo.c
| r6777 | r6778 | |
| 417 | 417 | |
| 418 | 418 | memset(avigo_banked_opbase, 0, sizeof(avigo_banked_opbase)); |
| 419 | 419 | |
| 420 | | /* initialise flash memory */ |
| 421 | | intelflash_init(machine, 0, FLASH_INTEL_E28F008SA, memory_region(machine, "maincpu")+0x10000); |
| 422 | | intelflash_init(machine, 1, FLASH_INTEL_E28F008SA, memory_region(machine, "maincpu")+0x110000); |
| 423 | | intelflash_init(machine, 2, FLASH_INTEL_E28F008SA, NULL); |
| 424 | | |
| 425 | 420 | stylus_marker_x = AVIGO_SCREEN_WIDTH>>1; |
| 426 | 421 | stylus_marker_y = AVIGO_SCREEN_HEIGHT>>1; |
| 427 | 422 | stylus_press_x = 0; |
| r6777 | r6778 | |
| 461 | 456 | /* a timer used to check status of pen */ |
| 462 | 457 | /* an interrupt is generated when the pen is pressed to the screen */ |
| 463 | 458 | timer_pulse(machine, ATTOTIME_IN_HZ(50), NULL, 0, avigo_dummy_timer_callback); |
| 459 | |
| 460 | /* initialise flash memory */ |
| 461 | intelflash_init(machine, 0, FLASH_INTEL_E28F008SA, memory_region(machine, "maincpu")+0x10000); |
| 462 | intelflash_init(machine, 1, FLASH_INTEL_E28F008SA, memory_region(machine, "maincpu")+0x110000); |
| 463 | intelflash_init(machine, 2, FLASH_INTEL_E28F008SA, NULL); |
| 464 | 464 | } |
| 465 | 465 | |
| 466 | 466 | |