Previous 15994 Revisions Next

r6343 Monday 9th November, 2009 at 04:35:38 UTC by Robbbert
[INTV] Fixed intvkbd not working since 0.129
Fixed my mistake in r6284.
Added a temporary patch to allow Frogger to be played.
[src/mess/drivers]intv.c
[src/mess/machine]intv.c

src/mess/machine/intv.c
r6342r6343
464464   }
465465}
466466
467DEVICE_START( intv_cart )
468{
469   /* First, initialize these as empty so that the intellivision
470     * will think that the playcable and keyboard are not attached */
471   UINT8 *memory = memory_region(device->machine, "maincpu");
472
473   /* assume playcable is absent */
474   memory[0x4800 << 1] = 0xff;
475   memory[(0x4800 << 1) + 1] = 0xff;
476
477   /* assume keyboard is absent */
478   memory[0x7000 << 1] = 0xff;
479   memory[(0x7000 << 1) + 1] = 0xff;
480}
481
482467DEVICE_IMAGE_LOAD( intv_cart )
483468{
484   /* First, initialize these as empty so that the intellivision
485     * will think that the playcable and keyboard are not attached */
486   UINT8 *memory = memory_region(image->machine, "maincpu");
487
488   /* assume playcable is absent */
489   memory[0x4800 << 1] = 0xff;
490   memory[(0x4800 << 1) + 1] = 0xff;
491
492   /* assume keyboard is absent */
493   memory[0x7000 << 1] = 0xff;
494   memory[(0x7000 << 1) + 1] = 0xff;
495
496469   return intv_load_rom_file(image);
497470}
498471
r6342r6343
510483   /* These are actually the same vector, and INTR is unused */
511484   cpu_set_input_line_vector(cputag_get_cpu(machine, "maincpu"), CP1610_INT_INTRM, 0x1004);
512485   cpu_set_input_line_vector(cputag_get_cpu(machine, "maincpu"), CP1610_INT_INTR,  0x1004);
513   cpu_set_reg(cputag_get_cpu(machine, "maincpu"), CP1610_R7, 0x2000);
514486
487   /* Set initial PC */
488   cpu_set_reg(cputag_get_cpu(machine, "maincpu"), CP1610_R7, 0x1000);
489
515490   return;
516491}
517492
r6342r6343
570545
571546READ8_HANDLER( intv_left_control_r )
572547{
573   return 0xff;
548   return intv_right_control_r(space, 0 ); //0xff; /* small patch to allow Frogger to be played */
574549}
575550
576551/* Intellivision console + keyboard component */
src/mess/drivers/intv.c
r6342r6343
343343
344344static ADDRESS_MAP_START( intv_mem , ADDRESS_SPACE_PROGRAM, 16)
345345   AM_RANGE(0x0000, 0x003f) AM_READWRITE( stic_r, stic_w )
346    AM_RANGE(0x0100, 0x01ef) AM_READWRITE( intv_ram8_r, intv_ram8_w )
347    AM_RANGE(0x01f0, 0x01ff) AM_DEVREADWRITE("ay8910", AY8914_directread_port_0_lsb_r, AY8914_directwrite_port_0_lsb_w )
346   AM_RANGE(0x0100, 0x01ef) AM_READWRITE( intv_ram8_r, intv_ram8_w )
347   AM_RANGE(0x01f0, 0x01ff) AM_DEVREADWRITE("ay8910", AY8914_directread_port_0_lsb_r, AY8914_directwrite_port_0_lsb_w )
348348    AM_RANGE(0x0200, 0x035f) AM_READWRITE( intv_ram16_r, intv_ram16_w )
349349   AM_RANGE(0x1000, 0x1fff) AM_ROM   AM_REGION("maincpu", 0x1000<<1)   /* Exec ROM, 10-bits wide */
350350   AM_RANGE(0x3000, 0x37ff) AM_ROM   AM_REGION("maincpu", 0x3000<<1)   /* GROM,     8-bits wide */
r6342r6343
354354
355355static ADDRESS_MAP_START( intvkbd_mem , ADDRESS_SPACE_PROGRAM, 16)
356356   AM_RANGE(0x0000, 0x003f) AM_READWRITE( stic_r, stic_w )
357    AM_RANGE(0x0100, 0x01ef) AM_READWRITE( intv_ram8_r, intv_ram8_w )
358    AM_RANGE(0x01f0, 0x01ff) AM_DEVREADWRITE("ay8910", AY8914_directread_port_0_lsb_r, AY8914_directwrite_port_0_lsb_w )
357   AM_RANGE(0x0100, 0x01ef) AM_READWRITE( intv_ram8_r, intv_ram8_w )
358   AM_RANGE(0x01f0, 0x01ff) AM_DEVREADWRITE("ay8910", AY8914_directread_port_0_lsb_r, AY8914_directwrite_port_0_lsb_w )
359359    AM_RANGE(0x0200, 0x035f) AM_READWRITE( intv_ram16_r, intv_ram16_w )
360360   AM_RANGE(0x1000, 0x1fff) AM_ROM   AM_REGION("maincpu", 0x1000<<1)   /* Exec ROM, 10-bits wide */
361361   AM_RANGE(0x3000, 0x37ff) AM_ROM   AM_REGION("maincpu", 0x3000<<1)   /* GROM,     8-bits wide */
r6342r6343
374374   AM_RANGE( 0xc000, 0xffff) AM_ROM
375375ADDRESS_MAP_END
376376
377/* This is needed because MAME core does not allow PULSE_LINE.
378   The time interval is not critical, although it should be below 1000. */
379
380static TIMER_CALLBACK(intv_interrupt2_complete)
381{
382   cputag_set_input_line(machine, "keyboard", 0, CLEAR_LINE);
383}
384
377385static INTERRUPT_GEN( intv_interrupt2 )
378386{
379387   cputag_set_input_line(device->machine, "keyboard", 0, ASSERT_LINE);
388   timer_set(device->machine, cputag_clocks_to_attotime(device->machine, "keyboard", 100), NULL, 0, intv_interrupt2_complete);
380389}
381390
382391static MACHINE_DRIVER_START( intv )
r6342r6343
388397
389398   MDRV_MACHINE_RESET( intv )
390399
391    /* video hardware */
400   /* video hardware */
392401   MDRV_SCREEN_ADD("screen", RASTER)
393402   MDRV_SCREEN_REFRESH_RATE(59.92)
394403   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
r6342r6343
411420   /* cartridge */
412421   MDRV_CARTSLOT_ADD("cart")
413422   MDRV_CARTSLOT_EXTENSION_LIST("int,rom,bin,itv")
414   MDRV_CARTSLOT_MANDATORY
415   MDRV_CARTSLOT_START(intv_cart)
416423   MDRV_CARTSLOT_LOAD(intv_cart)
417424MACHINE_DRIVER_END
418425
r6342r6343
428435
429436   MDRV_QUANTUM_TIME(HZ(6000))
430437
431    /* video hardware */
438   /* video hardware */
432439   MDRV_GFXDECODE(intvkbd)
433440   MDRV_VIDEO_UPDATE(intvkbd)
434441
r6342r6343
445452MACHINE_DRIVER_END
446453
447454ROM_START(intv)
448   ROM_REGION(0x10000<<1,"maincpu",0)
455   ROM_REGION(0x10000<<1,"maincpu", ROMREGION_ERASEFF)
449456   ROM_LOAD16_WORD( "exec.bin", (0x1000<<1)+0, 0x2000, CRC(cbce86f7) SHA1(5a65b922b562cb1f57dab51b73151283f0e20c7a))
450457   ROM_LOAD16_BYTE( "grom.bin", (0x3000<<1)+1, 0x0800, CRC(683a4158) SHA1(f9608bb4ad1cfe3640d02844c7ad8e0bcd974917))
451458ROM_END
452459
453460ROM_START(intvsrs)
454   ROM_REGION(0x10000<<1,"maincpu",0)
461   ROM_REGION(0x10000<<1,"maincpu", ROMREGION_ERASEFF)
455462   ROM_LOAD16_WORD( "searsexc.bin", (0x1000<<1)+0, 0x2000, CRC(ea552a22) SHA1(834339de056d42a35571cae7fd5b04d1344001e9))
456463   ROM_LOAD16_BYTE( "grom.bin", (0x3000<<1)+1, 0x0800, CRC(683a4158) SHA1(f9608bb4ad1cfe3640d02844c7ad8e0bcd974917))
457464ROM_END
458465
459466ROM_START(intvkbd)
460   ROM_REGION(0x10000<<1,"maincpu",0)
467   ROM_REGION(0x10000<<1,"maincpu", ROMREGION_ERASEFF)
461468   ROM_LOAD16_WORD( "exec.bin", 0x1000<<1, 0x2000, CRC(cbce86f7) SHA1(5a65b922b562cb1f57dab51b73151283f0e20c7a))
462469   ROM_LOAD16_BYTE( "grom.bin", (0x3000<<1)+1, 0x0800, CRC(683a4158) SHA1(f9608bb4ad1cfe3640d02844c7ad8e0bcd974917))
463470   ROM_LOAD16_WORD( "024.u60",  0x7000<<1, 0x1000, CRC(4f7998ec) SHA1(ec006d0ae9002e9d56d83a71f5f2eddd6a456a40))
r6342r6343
503510***************************************************************************/
504511
505512/*    YEAR  NAME  PARENT  COMPAT  MACHINE  INPUT   INIT CONFIG COMPANY      FULLNAME */
506CONS( 1979, intv,      0,   0,   intv,     intv,    0,   0,   "Mattel",    "Intellivision", 0 )
513CONS( 1979, intv,   0,   0,   intv,     intv,    0,   0,   "Mattel",    "Intellivision", 0 )
507514CONS( 1981, intvsrs,   intv,   0,   intv,     intv,    0,   0,   "Mattel",    "Intellivision (Sears)", 0 )
508515COMP( 1981, intvkbd,   intv,   0,   intvkbd,  intvkbd,    0,   0,   "Mattel",    "Intellivision Keyboard Component (Unreleased)", GAME_NOT_WORKING)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team