Previous 15994 Revisions Next

r6778 Sunday 27th December, 2009 at 00:36:25 UTC by Robbbert
[ADAM APPLE2GS ATOM AVIGO CGENIE] Fixed crash.
[src/mess/drivers]adam.c atom.c avigo.c
[src/mess/includes]atom.h
[src/mess/machine]apple2gs.c atom.c cgenie.c

src/mess/includes/atom.h
r6777r6778
3030extern const via6522_interface atom_6522_interface;
3131extern const i8271_interface atom_8271_interface;
3232
33MACHINE_RESET( atom );
33MACHINE_START( atom );
3434QUICKLOAD_LOAD( atom );
3535READ8_DEVICE_HANDLER (atom_8255_porta_r);
3636READ8_DEVICE_HANDLER (atom_8255_portb_r);
r6777r6778
4343WRITE8_HANDLER(atom_eprom_box_w);
4444void atom_eprom_box_init(running_machine *machine);
4545
46MACHINE_RESET( atomeb );
46MACHINE_START( atomeb );
4747
4848READ8_DEVICE_HANDLER( atom_mc6847_videoram_r );
4949VIDEO_UPDATE( atom );
src/mess/machine/apple2gs.c
r6777r6778
17201720
17211721MACHINE_RESET( apple2gs )
17221722{
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 */
17341725}
17351726
17361727MACHINE_START( apple2gs )
r6777r6778
18311822   state_save_register_item(machine, "SNDGLUCTRL", NULL,0, sndglu_ctrl);
18321823   state_save_register_item(machine, "SNDGLUADDR", NULL,0, sndglu_addr);
18331824   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);
18341837}
src/mess/machine/cgenie.c
r6777r6778
128128
129129   cass_level = 0;
130130   cass_bit = 1;
131   timer_pulse(machine,  ATTOTIME_IN_HZ(11025), NULL, 0, handle_cassette_input );
132131}
133132
134133MACHINE_START( cgenie )
r6777r6778
158157   memory_install_write8_handler(space, 0x4000, 0x4000 + messram_get_size(devtag_get_device(machine, "messram")) - 1, 0, 0, cgenie_videoram_w);
159158   machine->generic.videoram.u8 = messram_get_ptr(devtag_get_device(machine, "messram"));
160159   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 );
161161}
162162
163163/*************************************
src/mess/machine/atom.c
r6777r6778
174174   }
175175}
176176
177MACHINE_RESET( atom )
177MACHINE_START( atom )
178178{
179179   atom_8255_porta = 0xff;
180180   atom_8255_portb = 0xff;
r6777r6778
389389   return selected_eprom;
390390}
391391
392MACHINE_RESET( atomeb )
392MACHINE_START( atomeb )
393393{
394   MACHINE_RESET_CALL(atom);
394   MACHINE_START_CALL(atom);
395395   atom_eprom_box_init(machine);
396396}
397397
src/mess/drivers/adam.c
r6777r6778
595595static MACHINE_START( adam )
596596{
597597   TMS9928A_configure(&tms9928a_interface);
598   timer_pulse(machine, ATTOTIME_IN_MSEC(20), NULL, 0, adam_paddle_callback);
598599}
599600
600601static MACHINE_RESET( adam )
r6777r6778
622623   adam_clear_keyboard_buffer();
623624
624625   memset(&memory_region(machine, "maincpu")[0x0000], 0xFF, 0x20000); /* Initializing RAM */
625   timer_pulse(machine, ATTOTIME_IN_MSEC(20), NULL, 0, adam_paddle_callback);
626626}
627627
628628static const floppy_config adam_floppy_config =
src/mess/drivers/atom.c
r6777r6778
299299   MDRV_CPU_ADD("maincpu", M65C02, X2 / 4)
300300   MDRV_CPU_PROGRAM_MAP(atom_mem)
301301
302   MDRV_MACHINE_RESET( atom )
302   MDRV_MACHINE_START( atom )
303303
304304   MDRV_I8255A_ADD( "ppi8255", atom_8255_int )
305305
r6777r6778
344344   MDRV_CPU_MODIFY( "maincpu" )
345345   MDRV_CPU_PROGRAM_MAP(atomeb_mem)
346346
347   MDRV_MACHINE_RESET( atomeb )
347   MDRV_MACHINE_START( atomeb )
348348MACHINE_DRIVER_END
349349
350350
src/mess/drivers/avigo.c
r6777r6778
417417
418418   memset(avigo_banked_opbase, 0, sizeof(avigo_banked_opbase));
419419
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
425420   stylus_marker_x = AVIGO_SCREEN_WIDTH>>1;
426421   stylus_marker_y = AVIGO_SCREEN_HEIGHT>>1;
427422   stylus_press_x = 0;
r6777r6778
461456   /* a timer used to check status of pen */
462457   /* an interrupt is generated when the pen is pressed to the screen */
463458   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);
464464}
465465
466466

Previous 15994 Revisions Next


© 1998-2018 The MESS Team