src/mess/machine/intv.c
| r6342 | r6343 | |
| 464 | 464 | } |
| 465 | 465 | } |
| 466 | 466 | |
| 467 | | DEVICE_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 | | |
| 482 | 467 | DEVICE_IMAGE_LOAD( intv_cart ) |
| 483 | 468 | { |
| 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 | | |
| 496 | 469 | return intv_load_rom_file(image); |
| 497 | 470 | } |
| 498 | 471 | |
| r6342 | r6343 | |
| 510 | 483 | /* These are actually the same vector, and INTR is unused */ |
| 511 | 484 | cpu_set_input_line_vector(cputag_get_cpu(machine, "maincpu"), CP1610_INT_INTRM, 0x1004); |
| 512 | 485 | 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); |
| 514 | 486 | |
| 487 | /* Set initial PC */ |
| 488 | cpu_set_reg(cputag_get_cpu(machine, "maincpu"), CP1610_R7, 0x1000); |
| 489 | |
| 515 | 490 | return; |
| 516 | 491 | } |
| 517 | 492 | |
| r6342 | r6343 | |
| 570 | 545 | |
| 571 | 546 | READ8_HANDLER( intv_left_control_r ) |
| 572 | 547 | { |
| 573 | | return 0xff; |
| 548 | return intv_right_control_r(space, 0 ); //0xff; /* small patch to allow Frogger to be played */ |
| 574 | 549 | } |
| 575 | 550 | |
| 576 | 551 | /* Intellivision console + keyboard component */ |
src/mess/drivers/intv.c
| r6342 | r6343 | |
| 343 | 343 | |
| 344 | 344 | static ADDRESS_MAP_START( intv_mem , ADDRESS_SPACE_PROGRAM, 16) |
| 345 | 345 | 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 ) |
| 348 | 348 | AM_RANGE(0x0200, 0x035f) AM_READWRITE( intv_ram16_r, intv_ram16_w ) |
| 349 | 349 | AM_RANGE(0x1000, 0x1fff) AM_ROM AM_REGION("maincpu", 0x1000<<1) /* Exec ROM, 10-bits wide */ |
| 350 | 350 | AM_RANGE(0x3000, 0x37ff) AM_ROM AM_REGION("maincpu", 0x3000<<1) /* GROM, 8-bits wide */ |
| r6342 | r6343 | |
| 354 | 354 | |
| 355 | 355 | static ADDRESS_MAP_START( intvkbd_mem , ADDRESS_SPACE_PROGRAM, 16) |
| 356 | 356 | 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 ) |
| 359 | 359 | AM_RANGE(0x0200, 0x035f) AM_READWRITE( intv_ram16_r, intv_ram16_w ) |
| 360 | 360 | AM_RANGE(0x1000, 0x1fff) AM_ROM AM_REGION("maincpu", 0x1000<<1) /* Exec ROM, 10-bits wide */ |
| 361 | 361 | AM_RANGE(0x3000, 0x37ff) AM_ROM AM_REGION("maincpu", 0x3000<<1) /* GROM, 8-bits wide */ |
| r6342 | r6343 | |
| 374 | 374 | AM_RANGE( 0xc000, 0xffff) AM_ROM |
| 375 | 375 | ADDRESS_MAP_END |
| 376 | 376 | |
| 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 | |
| 380 | static TIMER_CALLBACK(intv_interrupt2_complete) |
| 381 | { |
| 382 | cputag_set_input_line(machine, "keyboard", 0, CLEAR_LINE); |
| 383 | } |
| 384 | |
| 377 | 385 | static INTERRUPT_GEN( intv_interrupt2 ) |
| 378 | 386 | { |
| 379 | 387 | 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); |
| 380 | 389 | } |
| 381 | 390 | |
| 382 | 391 | static MACHINE_DRIVER_START( intv ) |
| r6342 | r6343 | |
| 388 | 397 | |
| 389 | 398 | MDRV_MACHINE_RESET( intv ) |
| 390 | 399 | |
| 391 | | /* video hardware */ |
| 400 | /* video hardware */ |
| 392 | 401 | MDRV_SCREEN_ADD("screen", RASTER) |
| 393 | 402 | MDRV_SCREEN_REFRESH_RATE(59.92) |
| 394 | 403 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| r6342 | r6343 | |
| 411 | 420 | /* cartridge */ |
| 412 | 421 | MDRV_CARTSLOT_ADD("cart") |
| 413 | 422 | MDRV_CARTSLOT_EXTENSION_LIST("int,rom,bin,itv") |
| 414 | | MDRV_CARTSLOT_MANDATORY |
| 415 | | MDRV_CARTSLOT_START(intv_cart) |
| 416 | 423 | MDRV_CARTSLOT_LOAD(intv_cart) |
| 417 | 424 | MACHINE_DRIVER_END |
| 418 | 425 | |
| r6342 | r6343 | |
| 428 | 435 | |
| 429 | 436 | MDRV_QUANTUM_TIME(HZ(6000)) |
| 430 | 437 | |
| 431 | | /* video hardware */ |
| 438 | /* video hardware */ |
| 432 | 439 | MDRV_GFXDECODE(intvkbd) |
| 433 | 440 | MDRV_VIDEO_UPDATE(intvkbd) |
| 434 | 441 | |
| r6342 | r6343 | |
| 445 | 452 | MACHINE_DRIVER_END |
| 446 | 453 | |
| 447 | 454 | ROM_START(intv) |
| 448 | | ROM_REGION(0x10000<<1,"maincpu",0) |
| 455 | ROM_REGION(0x10000<<1,"maincpu", ROMREGION_ERASEFF) |
| 449 | 456 | ROM_LOAD16_WORD( "exec.bin", (0x1000<<1)+0, 0x2000, CRC(cbce86f7) SHA1(5a65b922b562cb1f57dab51b73151283f0e20c7a)) |
| 450 | 457 | ROM_LOAD16_BYTE( "grom.bin", (0x3000<<1)+1, 0x0800, CRC(683a4158) SHA1(f9608bb4ad1cfe3640d02844c7ad8e0bcd974917)) |
| 451 | 458 | ROM_END |
| 452 | 459 | |
| 453 | 460 | ROM_START(intvsrs) |
| 454 | | ROM_REGION(0x10000<<1,"maincpu",0) |
| 461 | ROM_REGION(0x10000<<1,"maincpu", ROMREGION_ERASEFF) |
| 455 | 462 | ROM_LOAD16_WORD( "searsexc.bin", (0x1000<<1)+0, 0x2000, CRC(ea552a22) SHA1(834339de056d42a35571cae7fd5b04d1344001e9)) |
| 456 | 463 | ROM_LOAD16_BYTE( "grom.bin", (0x3000<<1)+1, 0x0800, CRC(683a4158) SHA1(f9608bb4ad1cfe3640d02844c7ad8e0bcd974917)) |
| 457 | 464 | ROM_END |
| 458 | 465 | |
| 459 | 466 | ROM_START(intvkbd) |
| 460 | | ROM_REGION(0x10000<<1,"maincpu",0) |
| 467 | ROM_REGION(0x10000<<1,"maincpu", ROMREGION_ERASEFF) |
| 461 | 468 | ROM_LOAD16_WORD( "exec.bin", 0x1000<<1, 0x2000, CRC(cbce86f7) SHA1(5a65b922b562cb1f57dab51b73151283f0e20c7a)) |
| 462 | 469 | ROM_LOAD16_BYTE( "grom.bin", (0x3000<<1)+1, 0x0800, CRC(683a4158) SHA1(f9608bb4ad1cfe3640d02844c7ad8e0bcd974917)) |
| 463 | 470 | ROM_LOAD16_WORD( "024.u60", 0x7000<<1, 0x1000, CRC(4f7998ec) SHA1(ec006d0ae9002e9d56d83a71f5f2eddd6a456a40)) |
| r6342 | r6343 | |
| 503 | 510 | ***************************************************************************/ |
| 504 | 511 | |
| 505 | 512 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 506 | | CONS( 1979, intv, 0, 0, intv, intv, 0, 0, "Mattel", "Intellivision", 0 ) |
| 513 | CONS( 1979, intv, 0, 0, intv, intv, 0, 0, "Mattel", "Intellivision", 0 ) |
| 507 | 514 | CONS( 1981, intvsrs, intv, 0, intv, intv, 0, 0, "Mattel", "Intellivision (Sears)", 0 ) |
| 508 | 515 | COMP( 1981, intvkbd, intv, 0, intvkbd, intvkbd, 0, 0, "Mattel", "Intellivision Keyboard Component (Unreleased)", GAME_NOT_WORKING) |