src/mame/video/deco32.c
| r11050 | r11051 | |
| 548 | 548 | { |
| 549 | 549 | dragngun_state *state = machine.driver_data<dragngun_state>(); |
| 550 | 550 | state->m_dirty_palette = auto_alloc_array(machine, UINT8, 4096); |
| 551 | | |
| 551 | |
| 552 | 552 | memset(state->m_dirty_palette,0,4096); |
| 553 | 553 | |
| 554 | 554 | state_save_register_global(machine, state->m_dragngun_sprite_ctrl); |
| r11050 | r11051 | |
| 590 | 590 | |
| 591 | 591 | SCREEN_EOF( dragngun ) |
| 592 | 592 | { |
| 593 | | |
| 593 | |
| 594 | 594 | } |
| 595 | 595 | |
| 596 | 596 | |
| r11050 | r11051 | |
| 628 | 628 | deco16ic_tilemap_1_draw(state->m_deco_tilegen1, bitmap, cliprect, 0, 4); |
| 629 | 629 | |
| 630 | 630 | screen->machine().device<decospr_device>("spritegen")->set_alt_format(true); |
| 631 | | screen->machine().device<decospr_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_buffered, 0x400); |
| 631 | screen->machine().device<decospr_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_buffered, 0x400); |
| 632 | 632 | |
| 633 | 633 | return 0; |
| 634 | 634 | } |
| r11050 | r11051 | |
| 653 | 653 | // zooming sprite draw is very slow, and sprites are buffered.. however, one of the levels attempts to use |
| 654 | 654 | // partial updates for every line, which causes things to be very slow... the sprites appear to support |
| 655 | 655 | // multiple layers of alpha, so rendering to a buffer for layer isn't easy (maybe there are multiple sprite |
| 656 | | // chips at work?) |
| 656 | // chips at work?) |
| 657 | 657 | // |
| 658 | 658 | // really, it needs optimizing .. the raster effects also need fixing properly, they're not correct using |
| 659 | 659 | // partial updates right now but the old buffering of scroll values was a hack and doesn't work properly |
| r11050 | r11051 | |
| 689 | 689 | deco16ic_pf_update(state->m_deco_tilegen1, state->m_pf1_rowscroll, state->m_pf2_rowscroll); |
| 690 | 690 | deco16ic_pf_update(state->m_deco_tilegen2, state->m_pf3_rowscroll, state->m_pf4_rowscroll); |
| 691 | 691 | |
| 692 | | screen->machine().device<decospr_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_buffered, 0x800, true); |
| 692 | screen->machine().device<decospr_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_buffered, 0x800, true); |
| 693 | 693 | |
| 694 | 694 | /* Draw screen */ |
| 695 | 695 | deco16ic_tilemap_2_draw(state->m_deco_tilegen2, bitmap, cliprect, 0, 1); |
| r11050 | r11051 | |
| 733 | 733 | bitmap_t* sprite0_mix_bitmap = machine.device<decospr_device>("spritegen1")->get_sprite_temp_bitmap(); |
| 734 | 734 | bitmap_t* sprite1_mix_bitmap = machine.device<decospr_device>("spritegen2")->get_sprite_temp_bitmap(); |
| 735 | 735 | |
| 736 | | |
| 736 | |
| 737 | 737 | /* Mix sprites into main bitmap, based on priority & alpha */ |
| 738 | 738 | for (y=8; y<248; y++) { |
| 739 | 739 | UINT8* tilemapPri=BITMAP_ADDR8(machine.priority_bitmap, y, 0); |
| r11050 | r11051 | |
| 879 | 879 | screen->machine().device<decospr_device>("spritegen1")->set_pix_raw_shift(8); |
| 880 | 880 | screen->machine().device<decospr_device>("spritegen2")->set_pix_raw_shift(8); |
| 881 | 881 | |
| 882 | | screen->machine().device<decospr_device>("spritegen1")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_buffered, 0x800, true); |
| 883 | | screen->machine().device<decospr_device>("spritegen2")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_2_buffered, 0x800, true); |
| 882 | screen->machine().device<decospr_device>("spritegen1")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_buffered, 0x800, true); |
| 883 | screen->machine().device<decospr_device>("spritegen2")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_2_buffered, 0x800, true); |
| 884 | 884 | |
| 885 | | |
| 885 | |
| 886 | 886 | /* Render alpha-blended tilemap to seperate buffer for proper mixing */ |
| 887 | 887 | bitmap_fill(state->m_tilemap_alpha_bitmap,cliprect,0); |
| 888 | 888 | |
src/mame/video/deco16ic.c
| r11050 | r11051 | |
| 1 | 1 | /******************************************************************************** |
| 2 | 2 | |
| 3 | | deco16ic.c |
| 3 | deco16ic.c |
| 4 | 4 | |
| 5 | 5 | Implementation of Data East tilemap ICs |
| 6 | | Data East IC 55 / 56 / 74 / 141 |
| 6 | Data East IC 55 / 56 / 74 / 141 |
| 7 | 7 | |
| 8 | | original work by Bryan McPhail, various updates David Haywood |
| 8 | original work by Bryan McPhail, various updates David Haywood |
| 9 | 9 | |
| 10 | 10 | Data East video emulation & information by Bryan McPhail, mish@tendril.co.uk (c) 2000-2005 Bryan McPhail |
| 11 | 11 | Please send me any additions to the table below. |
| r11050 | r11051 | |
| 147 | 147 | |
| 148 | 148 | 2010-02: Converted to be a device. |
| 149 | 149 | TODO: |
| 150 | | - convert to c++ device |
| 151 | | - should the decryption functions for the tilemap chips be here too? |
| 150 | - convert to c++ device |
| 151 | - should the decryption functions for the tilemap chips be here too? |
| 152 | 152 | |
| 153 | | it seems overall height / width of the tilemaps can be configured somehow |
| 154 | | darkseal clearly needs 64 rows, whereas other games need 32. |
| 153 | it seems overall height / width of the tilemaps can be configured somehow |
| 154 | darkseal clearly needs 64 rows, whereas other games need 32. |
| 155 | 155 | |
| 156 | | width seems configurable in a similar way, with nitroball and lockload |
| 157 | | needing narrower tilemaps. lockload/dragngun might be a good study case |
| 158 | | as they run on the same harwdare, and both rely on different behavior. |
| 156 | width seems configurable in a similar way, with nitroball and lockload |
| 157 | needing narrower tilemaps. lockload/dragngun might be a good study case |
| 158 | as they run on the same harwdare, and both rely on different behavior. |
| 159 | 159 | |
| 160 | 160 | ***************************************************************************/ |
| 161 | 161 | |
| r11050 | r11051 | |
| 280 | 280 | flags); |
| 281 | 281 | } |
| 282 | 282 | else |
| 283 | | { |
| 283 | { |
| 284 | 284 | SET_TILE_INFO_DEVICE( |
| 285 | 285 | deco16ic->pf12_16x16_gfx_bank, |
| 286 | 286 | (tile & 0xfff) | deco16ic->pf1_bank, |
| r11050 | r11051 | |
| 399 | 399 | width_mask = src_bitmap0->width - 1; |
| 400 | 400 | height_mask = src_bitmap0->height - 1; |
| 401 | 401 | src_y = scrolly + starty; |
| 402 | | |
| 403 | 402 | |
| 403 | |
| 404 | 404 | for (y = starty; y < endy; y++) |
| 405 | 405 | { |
| 406 | 406 | if (rowscroll_ptr && BIT(control1, 6)) |
| r11050 | r11051 | |
| 423 | 423 | |
| 424 | 424 | if (src_bitmap1) |
| 425 | 425 | { |
| 426 | | p |= (*BITMAP_ADDR16(src_bitmap1, (src_y + column_offset) & height_mask, src_x) & combine_mask) << combine_shift; |
| 426 | p |= (*BITMAP_ADDR16(src_bitmap1, (src_y + column_offset) & height_mask, src_x) & combine_mask) << combine_shift; |
| 427 | 427 | } |
| 428 | 428 | |
| 429 | 429 | src_x = (src_x + 1) & width_mask; |
| r11050 | r11051 | |
| 462 | 462 | { |
| 463 | 463 | UINT16 p2 = *BITMAP_ADDR16(src_bitmap1, (src_y + column_offset) & height_mask, src_x); |
| 464 | 464 | p = 0x200+( ((p&0x30)<<4) | (p&0x0f) | ((p2 & 0x0f)<<4)); |
| 465 | | } |
| 465 | } |
| 466 | 466 | } |
| 467 | 467 | src_x = (src_x + 1) & width_mask; |
| 468 | 468 | |
| r11050 | r11051 | |
| 560 | 560 | COMBINE_DATA(&deco16ic->pf1_data[offset]); |
| 561 | 561 | |
| 562 | 562 | tilemap_mark_tile_dirty(deco16ic->pf1_tilemap_8x8, offset); |
| 563 | | // if (offset < 0x800) |
| 563 | // if (offset < 0x800) |
| 564 | 564 | tilemap_mark_tile_dirty(deco16ic->pf1_tilemap_16x16, offset); |
| 565 | 565 | } |
| 566 | 566 | |
| r11050 | r11051 | |
| 571 | 571 | COMBINE_DATA(&deco16ic->pf2_data[offset]); |
| 572 | 572 | |
| 573 | 573 | tilemap_mark_tile_dirty(deco16ic->pf2_tilemap_8x8, offset); |
| 574 | | // if (offset < 0x800) |
| 574 | // if (offset < 0x800) |
| 575 | 575 | tilemap_mark_tile_dirty(deco16ic->pf2_tilemap_16x16, offset); |
| 576 | 576 | } |
| 577 | 577 | |
| r11050 | r11051 | |
| 928 | 928 | fullwidth = 1; |
| 929 | 929 | |
| 930 | 930 | deco16ic->pf1_tilemap_16x16 = tilemap_create_device(device, get_pf1_tile_info, deco16_scan_rows, 16, 16, fullwidth ? 64 : 32, fullheight ?64 : 32); |
| 931 | | // deco16ic->pf1_tilemap_8x8 = tilemap_create_device(device, get_pf1_tile_info_b, tilemap_scan_rows, 8, 8, intf->full_width12 ? 64 : 32, 32); |
| 931 | // deco16ic->pf1_tilemap_8x8 = tilemap_create_device(device, get_pf1_tile_info_b, tilemap_scan_rows, 8, 8, intf->full_width12 ? 64 : 32, 32); |
| 932 | 932 | deco16ic->pf1_tilemap_8x8 = tilemap_create_device(device, get_pf1_tile_info_b, tilemap_scan_rows, 8, 8, 64 , 32); // nitroball |
| 933 | 933 | |
| 934 | 934 | deco16ic->pf12_8x8_gfx_bank = intf->_8x8_gfxregion; |
| r11050 | r11051 | |
| 940 | 940 | deco16ic->pf2_tilemap_16x16 = tilemap_create_device(device, get_pf2_tile_info, deco16_scan_rows, 16, 16, fullwidth ? 64 : 32, fullheight ? 64 : 32); |
| 941 | 941 | |
| 942 | 942 | deco16ic->pf2_tilemap_8x8 = tilemap_create_device(device, get_pf2_tile_info_b, tilemap_scan_rows, 8, 8, fullwidth ? 64 : 32, fullheight ? 64 : 32); |
| 943 | | |
| 943 | |
| 944 | 944 | tilemap_set_transparent_pen(deco16ic->pf1_tilemap_8x8, 0); |
| 945 | 945 | tilemap_set_transparent_pen(deco16ic->pf2_tilemap_8x8, 0); |
| 946 | 946 | tilemap_set_transparent_pen(deco16ic->pf1_tilemap_16x16, 0); |
src/mame/drivers/csplayh5.c
| r11050 | r11051 | |
| 116 | 116 | |
| 117 | 117 | AM_RANGE(0x800000, 0xbfffff) AM_ROM AM_REGION("blit_gfx",0) // GFX ROM routes here |
| 118 | 118 | |
| 119 | | AM_RANGE(0xc80000, 0xcfffff) AM_RAM AM_SHARE("nvram") // work RAM |
| 119 | AM_RANGE(0xc80000, 0xcfffff) AM_RAM AM_SHARE("nvram") AM_MIRROR(0x200000) // work RAM |
| 120 | 120 | |
| 121 | 121 | AM_RANGE(0xfffc00, 0xffffff) AM_READWRITE(tmp68301_regs_r, tmp68301_regs_w) // TMP68301 Registers |
| 122 | 122 | ADDRESS_MAP_END |
| r11050 | r11051 | |
| 514 | 514 | PORT_DIPNAME( 0x1000, 0x0000, DEF_STR( Unknown ) ) |
| 515 | 515 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 516 | 516 | PORT_DIPSETTING( 0x1000, DEF_STR( On ) ) |
| 517 | | PORT_DIPNAME( 0x2000, 0x0000, DEF_STR( Unknown ) ) |
| 517 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) //enters into analyzer in some games otherwise |
| 518 | 518 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 519 | 519 | PORT_DIPSETTING( 0x2000, DEF_STR( On ) ) |
| 520 | 520 | PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Unknown ) ) |
| r11050 | r11051 | |
| 678 | 678 | |
| 679 | 679 | ***************************************************************************/ |
| 680 | 680 | |
| 681 | | static DRIVER_INIT( csplayh5 ) |
| 681 | void general_init(running_machine &machine, int patchaddress) |
| 682 | 682 | { |
| 683 | 683 | UINT16 *MAINROM = (UINT16 *)machine.region("maincpu")->base(); |
| 684 | 684 | UINT8 *SNDROM = machine.region("audiocpu")->base(); |
| r11050 | r11051 | |
| 687 | 687 | csplayh5_soundbank_w(machine, 0); |
| 688 | 688 | |
| 689 | 689 | /* patch DVD comms check */ |
| 690 | | MAINROM[0x4cb4/2] = 0x6018; |
| 690 | MAINROM[patchaddress] = 0x6018; |
| 691 | 691 | |
| 692 | 692 | /* patch sound program */ |
| 693 | 693 | SNDROM[0x0213] = 0x00; // DI -> NOP |
| 694 | |
| 694 | 695 | } |
| 695 | 696 | |
| 697 | static DRIVER_INIT( jyunai ) |
| 698 | { |
| 699 | general_init(machine,0x679C/2); |
| 700 | } |
| 701 | |
| 702 | static DRIVER_INIT( csplayh5 ) |
| 703 | { |
| 704 | general_init(machine, 0x4cb4/2); |
| 705 | } |
| 706 | |
| 707 | static DRIVER_INIT( bikiniko ) |
| 708 | { |
| 709 | general_init(machine,0x585C/2); |
| 710 | } |
| 711 | |
| 712 | |
| 713 | ROM_START( jyunai ) |
| 714 | ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg |
| 715 | ROM_LOAD16_BYTE( "2.ic3", 0x00000, 0x20000, CRC(5923bf2e) SHA1(8fc7b95a44eb792ce03c1bffb9ad56f82d34b470) ) |
| 716 | ROM_LOAD16_BYTE( "1.ic2", 0x00001, 0x20000, CRC(4ac649ee) SHA1(f5b5bccecb6eba5addcf6a57e54deff7f29f6381) ) |
| 717 | |
| 718 | ROM_REGION( 0x20000, "subcpu", 0 ) // h8, dvd player |
| 719 | ROM_LOAD16_WORD_SWAP( "u2.va1b102", 0x00000, 0x20000, CRC(67374715) SHA1(8767cbd81614c2686a1adb70159f909e8ffd634d) ) |
| 720 | |
| 721 | ROM_REGION( 0x20000, "audiocpu", 0 ) // z80 |
| 722 | ROM_LOAD( "11.ic51", 0x00000, 0x20000, CRC(a0472ea5) SHA1(0fd04941ff595cffe64357f3a1a9dc1170db8703) ) |
| 723 | |
| 724 | ROM_REGION( 0x400000, "blit_gfx", ROMREGION_ERASEFF ) // blitter based gfxs |
| 725 | ROM_LOAD16_BYTE( "3.ic40", 0x00000, 0x80000, CRC(f17fa4c4) SHA1(fd8b69b18f9ac00f468d751bf1ea0715498ea742) ) |
| 726 | ROM_LOAD16_BYTE( "4.ic41", 0x00001, 0x80000, CRC(4182dc30) SHA1(89601c62b74aff3d65b075d4b5cd1eb2ccf4e386) ) |
| 727 | // 0x100000 - 0x3fffff empty sockets |
| 728 | |
| 729 | DISK_REGION( "dvd" ) |
| 730 | DISK_IMAGE( "jyunai", 0, NO_DUMP ) |
| 731 | ROM_END |
| 732 | |
| 696 | 733 | ROM_START( csplayh5 ) |
| 697 | 734 | ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg |
| 698 | 735 | ROM_LOAD16_BYTE( "2.ic3", 0x00000, 0x20000, CRC(980bf3b0) SHA1(89da7354552f30aaa9d46442972c060b4b0f8979) ) |
| 699 | 736 | ROM_LOAD16_BYTE( "1.ic2", 0x00001, 0x20000, CRC(81ca49a4) SHA1(601b6802ab85be61f45a64f5b4c7e1f1ae5ee887) ) |
| 700 | 737 | |
| 701 | | ROM_REGION( 0x20000, "subcpu", 0 ) // ??? |
| 702 | | ROM_LOAD16_WORD_SWAP( "daughter.bin", 0x00000, 0x20000, CRC(36135792) SHA1(1b9c50bd02df8227b228b35cc485efd5a13ec639) ) |
| 738 | ROM_REGION( 0x20000, "subcpu", 0 ) // h8, dvd player |
| 739 | ROM_LOAD16_WORD_SWAP( "u2.va1a101", 0x00000, 0x20000, CRC(36135792) SHA1(1b9c50bd02df8227b228b35cc485efd5a13ec639) ) |
| 703 | 740 | |
| 704 | 741 | ROM_REGION( 0x20000, "audiocpu", 0 ) // z80 |
| 705 | 742 | ROM_LOAD( "11.ic51", 0x00000, 0x20000, CRC(0b920806) SHA1(95f50ebfb296ba29aaa8079a41f5362cb9e879cc) ) |
| r11050 | r11051 | |
| 713 | 750 | DISK_IMAGE( "csplayh5", 0, SHA1(ce4883ce1351ce5299e41bfbd9a5ae8078b82b8c) ) |
| 714 | 751 | ROM_END |
| 715 | 752 | |
| 753 | ROM_START( bikiniko ) |
| 754 | ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg |
| 755 | ROM_LOAD16_BYTE( "2.ic3", 0x00000, 0x20000, CRC(b80b5484) SHA1(35769d9502cbe587dad6380c35e535cea1578227) ) |
| 756 | ROM_LOAD16_BYTE( "1.ic2", 0x00001, 0x20000, CRC(13a885af) SHA1(ba8221fab1a37f1937e4399eabe3eaa9093884d3) ) |
| 757 | |
| 758 | ROM_REGION( 0x20000, "subcpu", 0 ) // h8, dvd player |
| 759 | ROM_LOAD16_WORD_SWAP( "u2.va1b101", 0x00000, 0x20000, CRC(b92a83c8) SHA1(bd6d9adaa74cf7512478838d1bd5a79dbd0c4aa1) ) |
| 760 | |
| 761 | ROM_REGION( 0x20000, "audiocpu", 0 ) // z80 |
| 762 | ROM_LOAD( "11.ic51", 0x00000, 0x20000, CRC(4a2142d6) SHA1(3a762f7b7cccdb6715b5f59524b04b12694fc130) ) |
| 763 | |
| 764 | ROM_REGION( 0x400000, "blit_gfx", ROMREGION_ERASEFF ) // blitter based gfxs |
| 765 | ROM_LOAD16_BYTE( "3.ic40", 0x00000, 0x80000, CRC(12914d3b) SHA1(de0cdb47ee5cbf8bd19ab19b1b8d8afe103dcedf) ) |
| 766 | ROM_LOAD16_BYTE( "4.ic41", 0x00001, 0x80000, CRC(1e2e1cf3) SHA1(f71b5dedf4f897644d519e412651152d0d81edb8) ) |
| 767 | // 0x100000 - 0x3fffff empty sockets |
| 768 | |
| 769 | DISK_REGION( "dvd" ) |
| 770 | DISK_IMAGE( "bikiniko", 0, NO_DUMP ) |
| 771 | ROM_END |
| 772 | |
| 773 | |
| 716 | 774 | // 1998 |
| 717 | 775 | // 01 : Mahjong Gal-pri (World Gal-con Grandprix) : Nichibutsu/Just&Just |
| 718 | 776 | // 02 : Sengoku Mahjong Kurenai Otome-tai : Nichibutsu/Just&Just |
| 719 | | // 03 : Jyunai - Manatsu no First Kiss : Nichibutsu/eic |
| 777 | /* 03 */ GAME( 1998, jyunai, 0, csplayh5, csplayh5, jyunai, ROT0, "Nichibutsu/eic", "Jyunai - Manatsu no First Kiss (Japan)", GAME_NOT_WORKING ) |
| 720 | 778 | /* 04 */ GAME( 1998, csplayh5, 0, csplayh5, csplayh5, csplayh5, ROT0, "Nichibutsu", "Mahjong Hanafuda Cosplay Tengoku 5 (Japan)", GAME_NOT_WORKING ) |
| 721 | 779 | // 05 : Jyunai2 - White Love Story : Nichibutsu/eic |
| 722 | 780 | // 06 : Mahjong Mogitate : Nichibutsu/Just&Just/NVS/Astro System/AV Japan |
| 723 | 781 | |
| 782 | |
| 724 | 783 | // 1999 |
| 725 | 784 | // 07 : Mahjong Maina - Kairakukan he Youkoso : Sphinx/Just&Just |
| 726 | 785 | // 08 : Renai Mahjong Idol Gakuen : Nichibutsu/eic |
| 727 | | // 09 : BiKiNikko - Okinawa de Ippai Shityaimashita : Nichibutsu/eic |
| 786 | /* 09 */ GAME( 1999, bikiniko, 0, csplayh5, csplayh5, bikiniko, ROT0, "Nichibutsu/eic", "BiKiNikko - Okinawa de Ippai Shityaimashita (Japan)", GAME_NOT_WORKING ) |
| 728 | 787 | // 10 : Mahjong Hanafuda Cospure Tengoko 6 - Jyunai hen : Nichibutsu/eic |
| 729 | 788 | // 11 : The Nanpa : Nichibutsu/Love Factory/eic |
| 730 | 789 | // 12 : PokoaPoka Onsen de CHU - Bijin 3 Simai ni kiwotukete : Nichibutsu/eic |
src/mame/drivers/deco32.c
| r11050 | r11051 | |
| 719 | 719 | { |
| 720 | 720 | deco32_state *state = space->machine().driver_data<deco32_state>(); |
| 721 | 721 | memcpy(state->m_spriteram16_buffered, state->m_spriteram16, 0x1000); |
| 722 | | } |
| 722 | } |
| 723 | 723 | |
| 724 | 724 | static READ32_HANDLER( deco32_spriteram2_r ) |
| 725 | 725 | { |
| r11050 | r11051 | |
| 739 | 739 | { |
| 740 | 740 | deco32_state *state = space->machine().driver_data<deco32_state>(); |
| 741 | 741 | memcpy(state->m_spriteram16_2_buffered, state->m_spriteram16_2, 0x1000); |
| 742 | | } |
| 742 | } |
| 743 | 743 | |
| 744 | 744 | |
| 745 | 745 | // tattass tests these as 32-bit ram, even if only 16-bits are hooked up to the tilemap chip - does it mirror parts of the dword? |
| r11050 | r11051 | |
| 757 | 757 | AM_RANGE(0x108000, 0x108003) AM_WRITENOP /* ? */ |
| 758 | 758 | AM_RANGE(0x110000, 0x111fff) AM_READWRITE(deco32_spriteram_r, deco32_spriteram_w) |
| 759 | 759 | AM_RANGE(0x120000, 0x127fff) AM_RAM AM_BASE_MEMBER(deco32_state, m_ram) /* Main RAM */ |
| 760 | | |
| 760 | |
| 761 | 761 | AM_RANGE(0x128000, 0x128fff) AM_READ(captaven_prot_r) |
| 762 | 762 | AM_RANGE(0x1280c8, 0x1280cb) AM_WRITE(deco32_sound_w) |
| 763 | 763 | AM_RANGE(0x130000, 0x131fff) AM_RAM_WRITE(deco32_nonbuffered_palette_w) AM_BASE_GENERIC(paletteram) /* Palette RAM */ |
| r11050 | r11051 | |
| 783 | 783 | |
| 784 | 784 | |
| 785 | 785 | static ADDRESS_MAP_START( fghthist_map, AS_PROGRAM, 32 ) |
| 786 | | // AM_RANGE(0x000000, 0x001fff) AM_ROM AM_WRITE(deco32_pf1_data_w) // wtf?? |
| 786 | // AM_RANGE(0x000000, 0x001fff) AM_ROM AM_WRITE(deco32_pf1_data_w) // wtf?? |
| 787 | 787 | AM_RANGE(0x000000, 0x0fffff) AM_ROM |
| 788 | 788 | AM_RANGE(0x100000, 0x11ffff) AM_RAM AM_BASE_MEMBER(deco32_state, m_ram) |
| 789 | 789 | AM_RANGE(0x120020, 0x12002f) AM_READ(fghthist_control_r) |
| r11050 | r11051 | |
| 2174 | 2174 | MCFG_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 2175 | 2175 | MCFG_SCREEN_SIZE(42*8, 32*8) |
| 2176 | 2176 | MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) |
| 2177 | | |
| 2177 | |
| 2178 | 2178 | MCFG_SCREEN_UPDATE(nslasher) |
| 2179 | 2179 | |
| 2180 | 2180 | MCFG_DECO16IC_ADD("tilegen1", tattass_deco16ic_tilegen1_intf) |
| r11050 | r11051 | |
| 2185 | 2185 | |
| 2186 | 2186 | MCFG_DEVICE_ADD("spritegen2", decospr_, 0) |
| 2187 | 2187 | decospr_device_config::set_gfx_region(device, 4); |
| 2188 | | |
| 2189 | 2188 | |
| 2189 | |
| 2190 | 2190 | MCFG_GFXDECODE(tattass) |
| 2191 | 2191 | MCFG_PALETTE_LENGTH(2048) |
| 2192 | 2192 | |
src/mame/drivers/cps2.c
| r11050 | r11051 | |
| 823 | 823 | AM_RANGE(0x662020, 0x662021) AM_RAM /* Network adapter related, accessed in SSF2TB */ |
| 824 | 824 | AM_RANGE(0x660000, 0x663fff) AM_RAM /* When bit 14 of 0x804030 equals 0 this space is available. Many games store highscores and other info here if available. */ |
| 825 | 825 | AM_RANGE(0x664000, 0x664001) AM_RAM /* Unknown - Only used if 0x660000-0x663fff available (could be RAM enable?) */ |
| 826 | | AM_RANGE(0x700000, 0x701fff) AM_WRITE(cps2_objram1_w) AM_BASE_MEMBER(cps_state, m_objram1) /* Object RAM, no game seems to use it directly */ |
| 826 | AM_RANGE(0x700000, 0x701fff) AM_WRITE(cps2_objram1_w) AM_BASE_MEMBER(cps_state, m_objram1) /* Object RAM, no game seems to use it directly */ |
| 827 | 827 | AM_RANGE(0x708000, 0x709fff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2) /* Object RAM */ |
| 828 | 828 | AM_RANGE(0x70a000, 0x70bfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2) /* mirror */ |
| 829 | 829 | AM_RANGE(0x70c000, 0x70dfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2) /* mirror */ |
| 830 | 830 | AM_RANGE(0x70e000, 0x70ffff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2) /* mirror */ |
| 831 | 831 | AM_RANGE(0x800100, 0x80013f) AM_WRITE(cps1_cps_a_w) AM_BASE_MEMBER(cps_state, m_cps_a_regs) /* mirror (sfa) */ |
| 832 | | AM_RANGE(0x800140, 0x80017f) AM_READWRITE(cps1_cps_b_r, cps1_cps_b_w) AM_BASE_MEMBER(cps_state, m_cps_b_regs) /* mirror (sfa) */ |
| 832 | AM_RANGE(0x800140, 0x80017f) AM_READWRITE(cps1_cps_b_r, cps1_cps_b_w) AM_BASE_MEMBER(cps_state, m_cps_b_regs) /* mirror (sfa) */ |
| 833 | 833 | AM_RANGE(0x804000, 0x804001) AM_READ_PORT("IN0") /* IN0 */ |
| 834 | 834 | AM_RANGE(0x804010, 0x804011) AM_READ_PORT("IN1") /* IN1 */ |
| 835 | 835 | AM_RANGE(0x804020, 0x804021) AM_READ_PORT("IN2") /* IN2 + EEPROM */ |
| r11050 | r11051 | |
| 854 | 854 | AM_RANGE(0x662020, 0x662021) AM_RAM /* Network adapter related, accessed in SSF2TB */ |
| 855 | 855 | AM_RANGE(0x660000, 0x663fff) AM_RAM /* When bit 14 of 0x804030 equals 0 this space is available. Many games store highscores and other info here if available. */ |
| 856 | 856 | AM_RANGE(0x664000, 0x664001) AM_RAM /* Unknown - Only used if 0x660000-0x663fff available (could be RAM enable?) */ |
| 857 | | AM_RANGE(0x700000, 0x701fff) AM_WRITE(cps2_objram1_w) AM_BASE_MEMBER(cps_state, m_objram1) /* Object RAM, no game seems to use it directly */ |
| 857 | AM_RANGE(0x700000, 0x701fff) AM_WRITE(cps2_objram1_w) AM_BASE_MEMBER(cps_state, m_objram1) /* Object RAM, no game seems to use it directly */ |
| 858 | 858 | AM_RANGE(0x708000, 0x709fff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2) /* Object RAM */ |
| 859 | 859 | AM_RANGE(0x70a000, 0x70bfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2) /* mirror */ |
| 860 | 860 | AM_RANGE(0x70c000, 0x70dfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2) /* mirror */ |
| 861 | 861 | AM_RANGE(0x70e000, 0x70ffff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2) /* mirror */ |
| 862 | 862 | AM_RANGE(0x800100, 0x80013f) AM_WRITE(cps1_cps_a_w) AM_BASE_MEMBER(cps_state, m_cps_a_regs) /* mirror (sfa) */ |
| 863 | | AM_RANGE(0x800140, 0x80017f) AM_READWRITE(cps1_cps_b_r, cps1_cps_b_w) AM_BASE_MEMBER(cps_state, m_cps_b_regs) /* mirror (sfa) */ |
| 863 | AM_RANGE(0x800140, 0x80017f) AM_READWRITE(cps1_cps_b_r, cps1_cps_b_w) AM_BASE_MEMBER(cps_state, m_cps_b_regs) /* mirror (sfa) */ |
| 864 | 864 | AM_RANGE(0x804000, 0x804001) AM_READ_PORT("IN0") /* IN0 */ |
| 865 | 865 | AM_RANGE(0x804010, 0x804011) AM_READ_PORT("IN1") /* IN1 */ |
| 866 | 866 | AM_RANGE(0x804020, 0x804021) AM_READ_PORT("IN2") /* IN2 + EEPROM */ |
src/mame/drivers/dogfgt.c
| r11050 | r11051 | |
| 290 | 290 | |
| 291 | 291 | ROM_START( dogfgt ) |
| 292 | 292 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 293 | | ROM_LOAD( "bx00.52", 0x8000, 0x2000, CRC(e602a21c) SHA1(12c659608d04ffc35ea9c1c0e1e82a8aab9f24bb) ) |
| 294 | | ROM_LOAD( "bx01.37", 0xa000, 0x2000, CRC(4921c4fb) SHA1(995b9ac123110c5c6d34d90f706ed72afdeaa231) ) |
| 295 | | ROM_LOAD( "bx02-5.bin", 0xc000, 0x2000, CRC(d11b50c3) SHA1(99dbbc85e8ff66eadc48a9f65f800676b10e35e4) ) |
| 296 | | ROM_LOAD( "bx03-5.bin", 0xe000, 0x2000, CRC(0e4813fb) SHA1(afcbd17029bc3c2de83c15cc941fe8f2ad062a5d) ) |
| 293 | ROM_LOAD( "bx00.52", 0x8000, 0x2000, CRC(e602a21c) SHA1(12c659608d04ffc35ea9c1c0e1e82a8aab9f24bb) ) |
| 294 | ROM_LOAD( "bx01.37", 0xa000, 0x2000, CRC(4921c4fb) SHA1(995b9ac123110c5c6d34d90f706ed72afdeaa231) ) |
| 295 | ROM_LOAD( "bx02-5.36", 0xc000, 0x2000, CRC(d11b50c3) SHA1(99dbbc85e8ff66eadc48a9f65f800676b10e35e4) ) |
| 296 | ROM_LOAD( "bx03-5.22", 0xe000, 0x2000, CRC(0e4813fb) SHA1(afcbd17029bc3c2de83c15cc941fe8f2ad062a5d) ) |
| 297 | 297 | |
| 298 | 298 | ROM_REGION( 0x10000, "sub", 0 ) /* 64k for audio code */ |
| 299 | 299 | ROM_LOAD( "bx04.117", 0x8000, 0x2000, CRC(f8945f9d) SHA1(a0782a5007dc5efc302c4fd61827e1b68475e7ab) ) |
| r11050 | r11051 | |
| 322 | 322 | ROM_LOAD( "bx21.64", 0x0020, 0x0020, CRC(5de4319f) SHA1(f70e116b80627d3eccc27c1964b08a0c8cdfff44) ) |
| 323 | 323 | ROM_END |
| 324 | 324 | |
| 325 | ROM_START( dogfgtu ) |
| 326 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 327 | ROM_LOAD( "bx00.52", 0x8000, 0x2000, CRC(e602a21c) SHA1(12c659608d04ffc35ea9c1c0e1e82a8aab9f24bb) ) |
| 328 | ROM_LOAD( "bx01-6.37", 0xa000, 0x2000, CRC(8bb66399) SHA1(3f7b7b6b5c5363c35d19b797ae9016bab63e3b96) ) |
| 329 | ROM_LOAD( "bx02-7.36", 0xc000, 0x2000, CRC(afaf10e6) SHA1(67b1e0722ae0e8110acc44bc582b308e86743d60) ) |
| 330 | ROM_LOAD( "bx03-6.33", 0xe000, 0x2000, CRC(51b20e8b) SHA1(0247345b3f9736e9140faf765cb33f97660f0ddd) ) |
| 331 | |
| 332 | ROM_REGION( 0x10000, "sub", 0 ) /* 64k for audio code */ |
| 333 | ROM_LOAD( "bx04-7.117", 0x8000, 0x2000, CRC(c4c2183b) SHA1(27cf40d6f03b078c5cc4497f393309bf33dea9dc) ) |
| 334 | ROM_LOAD( "bx05-7.118", 0xa000, 0x2000, CRC(d9a705ab) SHA1(7a49769d6c32e3d9840e4b24e3cbcd84a075d36d) ) |
| 335 | ROM_LOAD( "bx06.119", 0xc000, 0x2000, CRC(4a3b34cf) SHA1(f2e0bf9923a288b8137840f46fd90a23010f8018) ) |
| 336 | ROM_LOAD( "bx07-7.120", 0xe000, 0x2000, CRC(868df3dd) SHA1(482a461bce5555ac02b5ffa7723ee671139a2d54) ) |
| 337 | |
| 338 | ROM_REGION( 0x06000, "gfx1", 0 ) |
| 339 | ROM_LOAD( "bx17.56", 0x0000, 0x2000, CRC(fd3245d7) SHA1(4cbe887e0988382a38b7376c41ec1406fa66d18d) ) |
| 340 | ROM_LOAD( "bx18.57", 0x2000, 0x2000, CRC(03a5ef06) SHA1(44931222c722dec91516577d732478d01734efb3) ) |
| 341 | ROM_LOAD( "bx19.58", 0x4000, 0x2000, CRC(f62a16f4) SHA1(e7f2891aba1cf708d765229b76e36ee9c91596ea) ) |
| 342 | |
| 343 | ROM_REGION( 0x12000, "gfx2", 0 ) |
| 344 | ROM_LOAD( "bx08.128", 0x00000, 0x2000, CRC(8bf41b27) SHA1(346da090ba216c182530df40bd8d0af96c7a705b) ) |
| 345 | ROM_LOAD( "bx09.127", 0x02000, 0x2000, CRC(c3ea6509) SHA1(4ebe36f1cc59f44808d2975fe3d30ee089535bbc) ) |
| 346 | ROM_LOAD( "bx10.126", 0x04000, 0x2000, CRC(474a1c64) SHA1(14b2967d23903175e8e0b9340fcd11f7ce9d15dd) ) |
| 347 | ROM_LOAD( "bx11.125", 0x06000, 0x2000, CRC(ba67e382) SHA1(7f553b9121014d111ac9347132cae3a9f4702b16) ) |
| 348 | ROM_LOAD( "bx12.124", 0x08000, 0x2000, CRC(102c0e1c) SHA1(08b665131c799605711226c4907ec596c7962f70) ) |
| 349 | ROM_LOAD( "bx13.123", 0x0a000, 0x2000, CRC(ca47de34) SHA1(208fb15e5e6606bdcd26cfeb407979d0ada8154d) ) |
| 350 | ROM_LOAD( "bx14.122", 0x0c000, 0x2000, CRC(51b95bb4) SHA1(ed368eba64ccb035b13a0ba8bde8956b73c989c1) ) |
| 351 | ROM_LOAD( "bx15.121", 0x0e000, 0x2000, CRC(cf45d025) SHA1(e6974138ce8a796c77d220b2ab0d931cbd8e7280) ) |
| 352 | ROM_LOAD( "bx16.120", 0x10000, 0x2000, CRC(d1933837) SHA1(7fcb1cc66235f70db47b1e174eaca41fa8fcbb41) ) |
| 353 | |
| 354 | ROM_REGION( 0x0040, "proms", 0 ) |
| 355 | ROM_LOAD( "bx20.52", 0x0000, 0x0020, CRC(4e475f05) SHA1(3e077c7d2471c29dccdfbba9934024739a8d0586) ) |
| 356 | ROM_LOAD( "bx21.64", 0x0020, 0x0020, CRC(5de4319f) SHA1(f70e116b80627d3eccc27c1964b08a0c8cdfff44) ) |
| 357 | ROM_END |
| 358 | |
| 325 | 359 | ROM_START( dogfgtj ) |
| 326 | 360 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 327 | 361 | ROM_LOAD( "bx00.52", 0x8000, 0x2000, CRC(e602a21c) SHA1(12c659608d04ffc35ea9c1c0e1e82a8aab9f24bb) ) |
| r11050 | r11051 | |
| 358 | 392 | |
| 359 | 393 | |
| 360 | 394 | |
| 361 | | GAME( 1984, dogfgt, 0, dogfgt, dogfgt, 0, ROT0, "Technos Japan", "Acrobatic Dog-Fight", GAME_SUPPORTS_SAVE ) |
| 362 | | GAME( 1984, dogfgtj, dogfgt, dogfgt, dogfgt, 0, ROT0, "Technos Japan", "Dog-Fight (Japan)", GAME_SUPPORTS_SAVE ) |
| 395 | GAME( 1984, dogfgt, 0, dogfgt, dogfgt, 0, ROT0, "Technos Japan", "Acrobatic Dog-Fight", GAME_SUPPORTS_SAVE ) |
| 396 | GAME( 1985, dogfgtu, dogfgt, dogfgt, dogfgt, 0, ROT0, "Data East USA, Inc.", "Acrobatic Dog-Fight (USA)", GAME_SUPPORTS_SAVE ) |
| 397 | GAME( 1984, dogfgtj, dogfgt, dogfgt, dogfgt, 0, ROT0, "Technos Japan", "Dog-Fight (Japan)", GAME_SUPPORTS_SAVE ) |
src/mame/drivers/tumbleb.c
| r11050 | r11051 | |
| 970 | 970 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 971 | 971 | |
| 972 | 972 | PORT_START("DSW") |
| 973 | | PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) ) |
| 973 | PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3") |
| 974 | 974 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) |
| 975 | 975 | PORT_DIPSETTING( 0x0080, DEF_STR( 2C_1C ) ) |
| 976 | 976 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_1C ) ) |
| r11050 | r11051 | |
| 979 | 979 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) |
| 980 | 980 | PORT_DIPSETTING( 0x00c0, DEF_STR( 1C_5C ) ) |
| 981 | 981 | PORT_DIPSETTING( 0x0040, DEF_STR( 1C_6C ) ) |
| 982 | | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) ) |
| 982 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:4,5,6") |
| 983 | 983 | PORT_DIPSETTING( 0x0000, DEF_STR( 3C_1C ) ) |
| 984 | 984 | PORT_DIPSETTING( 0x0010, DEF_STR( 2C_1C ) ) |
| 985 | 985 | PORT_DIPSETTING( 0x001c, DEF_STR( 1C_1C ) ) |
| r11050 | r11051 | |
| 988 | 988 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) |
| 989 | 989 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_5C ) ) |
| 990 | 990 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_6C ) ) |
| 991 | | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) |
| 991 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:7") |
| 992 | 992 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) |
| 993 | 993 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 994 | | PORT_DIPNAME( 0x0001, 0x0001, "2 Coins to Start, 1 to Continue" ) |
| 994 | PORT_DIPNAME( 0x0001, 0x0001, "2 Coins to Start, 1 to Continue" ) PORT_DIPLOCATION("SW1:8") |
| 995 | 995 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 996 | 996 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 997 | 997 | |
| 998 | | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) ) |
| 998 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") |
| 999 | 999 | PORT_DIPSETTING( 0x8000, "1" ) |
| 1000 | 1000 | PORT_DIPSETTING( 0x0000, "2" ) |
| 1001 | 1001 | PORT_DIPSETTING( 0xc000, "3" ) |
| 1002 | 1002 | PORT_DIPSETTING( 0x4000, "4" ) |
| 1003 | | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) |
| 1003 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:3,4") |
| 1004 | 1004 | PORT_DIPSETTING( 0x1000, DEF_STR( Easy ) ) |
| 1005 | 1005 | PORT_DIPSETTING( 0x3000, DEF_STR( Normal ) ) |
| 1006 | 1006 | PORT_DIPSETTING( 0x2000, DEF_STR( Hard ) ) |
| 1007 | 1007 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 1008 | 1008 | #if TUMBLEP_HACK |
| 1009 | | PORT_DIPNAME( 0x0800, 0x0800, "Remove Monsters" ) |
| 1009 | PORT_DIPNAME( 0x0800, 0x0800, "Remove Monsters" ) PORT_DIPLOCATION("SW2:5") |
| 1010 | 1010 | #else |
| 1011 | | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unused ) ) // See notes |
| 1011 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:5") // See notes |
| 1012 | 1012 | #endif |
| 1013 | 1013 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) |
| 1014 | 1014 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1015 | 1015 | #if TUMBLEP_HACK |
| 1016 | | PORT_DIPNAME( 0x0400, 0x0400, "Edit Levels" ) |
| 1016 | PORT_DIPNAME( 0x0400, 0x0400, "Edit Levels" ) PORT_DIPLOCATION("SW2:6") |
| 1017 | 1017 | #else |
| 1018 | | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unused ) ) // See notes |
| 1018 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:6") // See notes |
| 1019 | 1019 | #endif |
| 1020 | 1020 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) |
| 1021 | 1021 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1022 | | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Allow_Continue ) ) |
| 1022 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:7") |
| 1023 | 1023 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 1024 | 1024 | PORT_DIPSETTING( 0x0200, DEF_STR( Yes ) ) |
| 1025 | | PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Demo_Sounds ) ) |
| 1025 | PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:8") |
| 1026 | 1026 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 1027 | 1027 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1028 | 1028 | INPUT_PORTS_END |
| r11050 | r11051 | |
| 1389 | 1389 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1390 | 1390 | |
| 1391 | 1391 | PORT_START("DSW") |
| 1392 | | PORT_DIPNAME( 0x0001, 0x0001, "Winning Rounds" ) PORT_DIPLOCATION("SW1:8") |
| 1392 | PORT_DIPNAME( 0x0001, 0x0001, "Winning Rounds" ) PORT_DIPLOCATION("SW1:8") |
| 1393 | 1393 | PORT_DIPSETTING( 0x0000, "2" ) |
| 1394 | 1394 | PORT_DIPSETTING( 0x0001, "3" ) |
| 1395 | | PORT_DIPNAME( 0x0006, 0x0006, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:7,6") |
| 1396 | | PORT_DIPSETTING( 0x0006, "0" ) |
| 1397 | | PORT_DIPSETTING( 0x0002, "1" ) |
| 1398 | | PORT_DIPSETTING( 0x0004, "2" ) |
| 1399 | | PORT_DIPSETTING( 0x0000, "3" ) |
| 1400 | | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:5,4") |
| 1401 | | PORT_DIPSETTING( 0x0018, "0" ) |
| 1402 | | PORT_DIPSETTING( 0x0008, "1" ) |
| 1403 | | PORT_DIPSETTING( 0x0010, "2" ) |
| 1404 | | PORT_DIPSETTING( 0x0000, "3" ) |
| 1405 | | PORT_DIPNAME( 0x0020, 0x0020, "Time" ) PORT_DIPLOCATION("SW1:3") |
| 1395 | PORT_DIPNAME( 0x0006, 0x0006, "Ball Speed" ) PORT_DIPLOCATION("SW1:7,6") |
| 1396 | PORT_DIPSETTING( 0x0000, "Slow" ) |
| 1397 | PORT_DIPSETTING( 0x0006, DEF_STR( Normal ) ) |
| 1398 | PORT_DIPSETTING( 0x0002, "Fast" ) |
| 1399 | PORT_DIPSETTING( 0x0004, "Very Fast" ) |
| 1400 | PORT_DIPNAME( 0x0018, 0x0018, "Energy Decrease" ) PORT_DIPLOCATION("SW1:5,4") |
| 1401 | PORT_DIPSETTING( 0x0000, "Very Small" ) |
| 1402 | PORT_DIPSETTING( 0x0010, "Small" ) |
| 1403 | PORT_DIPSETTING( 0x0018, DEF_STR( Normal ) ) |
| 1404 | PORT_DIPSETTING( 0x0008, "Big" ) |
| 1405 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Game_Time ) ) PORT_DIPLOCATION("SW1:3") |
| 1406 | 1406 | PORT_DIPSETTING( 0x0020, "60 Seconds" ) |
| 1407 | 1407 | PORT_DIPSETTING( 0x0000, "90 Seconds" ) |
| 1408 | | PORT_DIPNAME( 0x00c0, 0x00c0, "Starting Balls" ) PORT_DIPLOCATION("SW1:1,2") |
| 1408 | PORT_DIPNAME( 0x00c0, 0x00c0, "Starting Balls" ) PORT_DIPLOCATION("SW1:2,1") |
| 1409 | 1409 | PORT_DIPSETTING( 0x0000, "3" ) |
| 1410 | 1410 | PORT_DIPSETTING( 0x00c0, "4" ) |
| 1411 | 1411 | PORT_DIPSETTING( 0x0040, "5" ) |
| 1412 | 1412 | PORT_DIPSETTING( 0x0080, "6" ) |
| 1413 | 1413 | |
| 1414 | 1414 | PORT_SERVICE_DIPLOC( 0x0100, IP_ACTIVE_LOW, "SW2:8" ) |
| 1415 | | PORT_DIPNAME( 0x0600, 0x0600, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,6") |
| 1415 | PORT_DIPNAME( 0x0600, 0x0600, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:7,6") |
| 1416 | 1416 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) |
| 1417 | 1417 | PORT_DIPSETTING( 0x0600, DEF_STR( Normal ) ) |
| 1418 | 1418 | PORT_DIPSETTING( 0x0200, DEF_STR( Hard ) ) |
| 1419 | 1419 | PORT_DIPSETTING( 0x0400, DEF_STR( Very_Hard ) ) |
| 1420 | | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:5,4,3") |
| 1420 | PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:5,4,3") |
| 1421 | 1421 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) |
| 1422 | 1422 | PORT_DIPSETTING( 0x2000, DEF_STR( 4C_1C ) ) |
| 1423 | 1423 | PORT_DIPSETTING( 0x1000, DEF_STR( 3C_1C ) ) |
| r11050 | r11051 | |
| 1426 | 1426 | PORT_DIPSETTING( 0x2800, DEF_STR( 2C_3C ) ) |
| 1427 | 1427 | PORT_DIPSETTING( 0x1800, DEF_STR( 1C_2C ) ) |
| 1428 | 1428 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_3C ) ) |
| 1429 | | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:2") |
| 1430 | | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) |
| 1431 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1432 | | PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") |
| 1429 | PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Language ) ) PORT_DIPLOCATION("SW2:2") |
| 1430 | PORT_DIPSETTING( 0x4000, "Korean" ) |
| 1431 | PORT_DIPSETTING( 0x0000, DEF_STR( English ) ) |
| 1432 | PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:1") |
| 1433 | 1433 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 1434 | 1434 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1435 | 1435 | INPUT_PORTS_END |
src/mame/drivers/simpl156.c
| r11050 | r11051 | |
| 251 | 251 | static ADDRESS_MAP_START( joemacr_map, AS_PROGRAM, 32 ) |
| 252 | 252 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 253 | 253 | AM_RANGE(0x100000, 0x107fff) AM_READWRITE(simpl156_mainram_r, simpl156_mainram_w) AM_BASE_MEMBER(simpl156_state, m_mainram) // main ram |
| 254 | | AM_RANGE(0x110000, 0x111fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w) |
| 254 | AM_RANGE(0x110000, 0x111fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w) |
| 255 | 255 | AM_RANGE(0x120000, 0x120fff) AM_READWRITE(simpl156_palette_r, simpl156_palette_w) |
| 256 | 256 | AM_RANGE(0x130000, 0x130003) AM_READWRITE(simpl156_system_r, simpl156_eeprom_w) |
| 257 | 257 | AM_RANGE(0x140000, 0x14001f) AM_DEVREADWRITE("tilegen1", deco16ic_pf_control_dword_r, deco16ic_pf_control_dword_w) |
| r11050 | r11051 | |
| 275 | 275 | AM_RANGE(0x201000, 0x201fff) AM_RAM AM_BASE_MEMBER(simpl156_state, m_systemram) // work ram (32-bit) |
| 276 | 276 | AM_RANGE(0x3c0000, 0x3c0003) AM_DEVREADWRITE8_MODERN("okimusic", okim6295_device, read, write, 0x000000ff) |
| 277 | 277 | AM_RANGE(0x400000, 0x407fff) AM_READWRITE(simpl156_mainram_r, simpl156_mainram_w) AM_BASE_MEMBER(simpl156_state, m_mainram) // main ram? |
| 278 | | AM_RANGE(0x410000, 0x411fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w) |
| 278 | AM_RANGE(0x410000, 0x411fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w) |
| 279 | 279 | AM_RANGE(0x420000, 0x420fff) AM_READWRITE(simpl156_palette_r,simpl156_palette_w) |
| 280 | 280 | AM_RANGE(0x430000, 0x430003) AM_READWRITE(simpl156_system_r,simpl156_eeprom_w) |
| 281 | 281 | AM_RANGE(0x440000, 0x44001f) AM_DEVREADWRITE("tilegen1", deco16ic_pf_control_dword_r, deco16ic_pf_control_dword_w) |
| r11050 | r11051 | |
| 296 | 296 | AM_RANGE(0x201000, 0x201fff) AM_RAM AM_BASE_MEMBER(simpl156_state, m_systemram) // work ram (32-bit) |
| 297 | 297 | AM_RANGE(0x340000, 0x340003) AM_DEVREADWRITE8_MODERN("okimusic", okim6295_device, read, write, 0x000000ff) |
| 298 | 298 | AM_RANGE(0x380000, 0x387fff) AM_READWRITE(simpl156_mainram_r, simpl156_mainram_w) AM_BASE_MEMBER(simpl156_state, m_mainram) // main ram? |
| 299 | | AM_RANGE(0x390000, 0x391fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w) |
| 299 | AM_RANGE(0x390000, 0x391fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w) |
| 300 | 300 | AM_RANGE(0x3a0000, 0x3a0fff) AM_READWRITE(simpl156_palette_r,simpl156_palette_w) |
| 301 | 301 | AM_RANGE(0x3b0000, 0x3b0003) AM_READWRITE(simpl156_system_r,simpl156_eeprom_w) |
| 302 | 302 | AM_RANGE(0x3c0000, 0x3c001f) AM_DEVREADWRITE("tilegen1", deco16ic_pf_control_dword_r, deco16ic_pf_control_dword_w) |
| r11050 | r11051 | |
| 317 | 317 | AM_RANGE(0x201000, 0x201fff) AM_RAM AM_BASE_MEMBER(simpl156_state, m_systemram) // work ram (32-bit) |
| 318 | 318 | AM_RANGE(0x4c0000, 0x4c0003) AM_DEVREADWRITE8_MODERN("okimusic", okim6295_device, read, write, 0x000000ff) |
| 319 | 319 | AM_RANGE(0x680000, 0x687fff) AM_READWRITE(simpl156_mainram_r, simpl156_mainram_w) AM_BASE_MEMBER(simpl156_state, m_mainram) // main ram? |
| 320 | | AM_RANGE(0x690000, 0x691fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w) |
| 320 | AM_RANGE(0x690000, 0x691fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w) |
| 321 | 321 | AM_RANGE(0x6a0000, 0x6a0fff) AM_READWRITE(simpl156_palette_r,simpl156_palette_w) |
| 322 | 322 | AM_RANGE(0x6b0000, 0x6b0003) AM_READWRITE(simpl156_system_r,simpl156_eeprom_w) |
| 323 | 323 | AM_RANGE(0x6c0000, 0x6c001f) AM_DEVREADWRITE("tilegen1", deco16ic_pf_control_dword_r, deco16ic_pf_control_dword_w) |
| r11050 | r11051 | |
| 337 | 337 | AM_RANGE(0x100000, 0x100003) AM_DEVREADWRITE8_MODERN("okisfx", okim6295_device, read, write, 0x000000ff) |
| 338 | 338 | AM_RANGE(0x140000, 0x140003) AM_DEVREADWRITE8_MODERN("okimusic", okim6295_device, read, write, 0x000000ff) |
| 339 | 339 | AM_RANGE(0x180000, 0x187fff) AM_READWRITE(simpl156_mainram_r, simpl156_mainram_w) AM_BASE_MEMBER(simpl156_state, m_mainram) // main ram |
| 340 | | AM_RANGE(0x190000, 0x191fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w) |
| 340 | AM_RANGE(0x190000, 0x191fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w) |
| 341 | 341 | AM_RANGE(0x1a0000, 0x1a0fff) AM_READWRITE(simpl156_palette_r,simpl156_palette_w) |
| 342 | 342 | AM_RANGE(0x1b0000, 0x1b0003) AM_READWRITE(simpl156_system_r,simpl156_eeprom_w) |
| 343 | 343 | AM_RANGE(0x1c0000, 0x1c001f) AM_DEVREADWRITE("tilegen1", deco16ic_pf_control_dword_r, deco16ic_pf_control_dword_w) |
src/mame/drivers/lordgun.c
| r11050 | r11051 | |
| 428 | 428 | |
| 429 | 429 | static INPUT_PORTS_START( lordgun ) |
| 430 | 430 | PORT_START("DIP") |
| 431 | | PORT_DIPNAME( 0x01, 0x01, "Stage Select" ) |
| 431 | PORT_DIPNAME( 0x01, 0x01, "Stage Select" ) PORT_DIPLOCATION("SW1:1") |
| 432 | 432 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 433 | 433 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 434 | | PORT_DIPNAME( 0x02, 0x02, "Guns" ) |
| 435 | | PORT_DIPSETTING( 0x02, "IGS" ) // x table offset = 0x25 |
| 436 | | PORT_DIPSETTING( 0x00, "Konami" ) // "" = 0x2c |
| 437 | | PORT_DIPNAME( 0x04, 0x04, "Ranking Music" ) |
| 434 | PORT_DIPNAME( 0x02, 0x02, "Guns" ) PORT_DIPLOCATION("SW1:2") |
| 435 | PORT_DIPSETTING( 0x02, "IGS" ) // x table offset = 0x25 |
| 436 | PORT_DIPSETTING( 0x00, "Konami" ) // "" = 0x2c |
| 437 | PORT_DIPNAME( 0x04, 0x04, "Ranking Music" ) PORT_DIPLOCATION("SW1:3") |
| 438 | 438 | PORT_DIPSETTING( 0x04, "Exciting" ) |
| 439 | 439 | PORT_DIPSETTING( 0x00, "Tender" ) |
| 440 | | PORT_DIPNAME( 0x08, 0x08, "Coin Slots" ) |
| 440 | PORT_DIPNAME( 0x08, 0x08, "Coin Slots" ) PORT_DIPLOCATION("SW1:4") |
| 441 | 441 | PORT_DIPSETTING( 0x00, "1" ) |
| 442 | 442 | PORT_DIPSETTING( 0x08, "2" ) |
| 443 | 443 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r11050 | r11051 | |
| 500 | 500 | |
| 501 | 501 | static INPUT_PORTS_START( aliencha ) |
| 502 | 502 | PORT_START("DIP1") |
| 503 | | PORT_DIPNAME( 0x01, 0x01, "Credits To Start" ) |
| 503 | PORT_DIPNAME( 0x01, 0x01, "Credits To Start" ) PORT_DIPLOCATION("SW1:1") |
| 504 | 504 | PORT_DIPSETTING( 0x01, "1" ) |
| 505 | 505 | PORT_DIPSETTING( 0x00, "2" ) |
| 506 | | PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Coin_A ) ) |
| 506 | PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:2,3,4") |
| 507 | 507 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) |
| 508 | 508 | PORT_DIPSETTING( 0x02, DEF_STR( 4C_1C ) ) |
| 509 | 509 | PORT_DIPSETTING( 0x04, DEF_STR( 3C_1C ) ) |
| r11050 | r11051 | |
| 512 | 512 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_2C ) ) |
| 513 | 513 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_3C ) ) |
| 514 | 514 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_4C ) ) |
| 515 | | PORT_DIPNAME( 0x70, 0x70, DEF_STR( Coin_B ) ) |
| 515 | PORT_DIPNAME( 0x70, 0x70, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:5,6,7") |
| 516 | 516 | PORT_DIPSETTING( 0x00, DEF_STR( 5C_1C ) ) |
| 517 | 517 | PORT_DIPSETTING( 0x10, DEF_STR( 4C_1C ) ) |
| 518 | 518 | PORT_DIPSETTING( 0x20, DEF_STR( 3C_1C ) ) |
| r11050 | r11051 | |
| 521 | 521 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_2C ) ) |
| 522 | 522 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_3C ) ) |
| 523 | 523 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_4C ) ) |
| 524 | | PORT_DIPNAME( 0x80, 0x80, "Coin Slots" ) |
| 524 | PORT_DIPNAME( 0x80, 0x80, "Coin Slots" ) PORT_DIPLOCATION("SW1:8") |
| 525 | 525 | PORT_DIPSETTING( 0x80, "1" ) |
| 526 | 526 | PORT_DIPSETTING( 0x00, "2" ) |
| 527 | 527 | |
| 528 | 528 | PORT_START("DIP2") |
| 529 | | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) |
| 530 | | PORT_DIPSETTING( 0x03, "0" ) |
| 531 | | PORT_DIPSETTING( 0x02, "1" ) |
| 532 | | PORT_DIPSETTING( 0x01, "2" ) |
| 533 | | PORT_DIPSETTING( 0x00, "3" ) |
| 534 | | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) |
| 535 | | PORT_DIPNAME( 0x08, 0x08, "Round Time" ) |
| 536 | | PORT_DIPSETTING( 0x00, "32 s" ) // 40 s (measured) |
| 537 | | PORT_DIPSETTING( 0x08, "40 s" ) // 50 s (measured) |
| 538 | | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds ) ) |
| 529 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") |
| 530 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) |
| 531 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) |
| 532 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) |
| 533 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 534 | PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW2:3" ) |
| 535 | PORT_DIPNAME( 0x08, 0x08, "Round Time" ) PORT_DIPLOCATION("SW2:4") |
| 536 | PORT_DIPSETTING( 0x00, "32 s" ) // 40 s (measured) AKA "Short" |
| 537 | PORT_DIPSETTING( 0x08, "40 s" ) // 50 s (measured) AKA "Normal" |
| 538 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:5") |
| 539 | 539 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 540 | 540 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 541 | | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Free_Play ) ) |
| 541 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW2:6") |
| 542 | 542 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 543 | 543 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 544 | | PORT_DIPNAME( 0x40, 0x40, "Allow Join" ) |
| 544 | PORT_DIPNAME( 0x40, 0x40, "Allow Join" ) PORT_DIPLOCATION("SW2:7") |
| 545 | 545 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 546 | 546 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) |
| 547 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Allow_Continue ) ) |
| 547 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:8") |
| 548 | 548 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 549 | 549 | PORT_DIPSETTING( 0x80, DEF_STR( Yes ) ) |
| 550 | 550 | |
| 551 | 551 | PORT_START("DIP3") |
| 552 | | PORT_DIPNAME( 0x03, 0x03, "Buttons" ) |
| 552 | PORT_DIPNAME( 0x03, 0x03, "Buttons" ) PORT_DIPLOCATION("SW3:1,2") |
| 553 | 553 | PORT_DIPSETTING( 0x01, "3" ) |
| 554 | 554 | PORT_DIPSETTING( 0x02, "4" ) |
| 555 | 555 | PORT_DIPSETTING( 0x03, "6" ) |
| 556 | 556 | // PORT_DIPSETTING( 0x00, "6" ) |
| 557 | | PORT_DIPNAME( 0x04, 0x04, "Vs. Rounds" ) |
| 557 | PORT_DIPNAME( 0x04, 0x04, "Vs. Rounds" ) PORT_DIPLOCATION("SW3:3") |
| 558 | 558 | PORT_DIPSETTING( 0x00, "3" ) |
| 559 | 559 | PORT_DIPSETTING( 0x04, "5" ) |
| 560 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 561 | | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 562 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 563 | | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 564 | | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 565 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 566 | | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 567 | | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 568 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 569 | | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 570 | | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 571 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 572 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 573 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 574 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 560 | PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0008, "SW3:4" ) /* Listed as "Unused" */ |
| 561 | PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW3:5" ) /* Listed as "Unused" */ |
| 562 | PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SW3:6" ) /* Listed as "Unused" */ |
| 563 | PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW3:7" ) /* Listed as "Unused" */ |
| 564 | PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SW3:8" ) /* Listed as "Unused" */ |
| 575 | 565 | |
| 576 | 566 | PORT_START("SERVICE") |
| 577 | 567 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_READ_LINE_DEVICE("eeprom", eeprom_read_bit) |
src/mame/drivers/konamim2.c
| r11050 | r11051 | |
| 353 | 353 | { |
| 354 | 354 | if (data & 0x800000) |
| 355 | 355 | { |
| 356 | | // mame_printf_debug("CPU '%s': CPU1 IRQ at %08X\n", space->device().tag(), cpu_get_pc(&space->device())); |
| 356 | // mame_printf_debug("CPU '%s': CPU1 IRQ at %08X\n", space->device().tag(), cpu_get_pc(&space->device())); |
| 357 | 357 | cputag_set_input_line(space->machine(), "sub", INPUT_LINE_IRQ0, ASSERT_LINE); |
| 358 | 358 | } |
| 359 | 359 | |
| r11050 | r11051 | |
| 433 | 433 | { |
| 434 | 434 | if ((data & 0xff) == 0xd) |
| 435 | 435 | { |
| 436 | | // mame_printf_debug("\n"); |
| 436 | // mame_printf_debug("\n"); |
| 437 | 437 | } |
| 438 | 438 | else |
| 439 | 439 | { |
| 440 | | // mame_printf_debug("%c", (UINT8)(data & 0xff)); |
| 440 | // mame_printf_debug("%c", (UINT8)(data & 0xff)); |
| 441 | 441 | } |
| 442 | 442 | } |
| 443 | 443 | |
| r11050 | r11051 | |
| 525 | 525 | state->m_cde_status_bytes[0] = 0x04; |
| 526 | 526 | state->m_cde_status_byte_ptr = 0; |
| 527 | 527 | |
| 528 | | // mame_printf_debug("CDE: SET SPEED %02X, %02X\n", state->m_cde_command_bytes[1], state->m_cde_command_bytes[2]); |
| 528 | // mame_printf_debug("CDE: SET SPEED %02X, %02X\n", state->m_cde_command_bytes[1], state->m_cde_command_bytes[2]); |
| 529 | 529 | break; |
| 530 | 530 | } |
| 531 | 531 | case 0x06: // Audio Format / Data Format |
| r11050 | r11051 | |
| 537 | 537 | |
| 538 | 538 | if (state->m_cde_command_bytes[1] == 0x00) // Audio Format |
| 539 | 539 | { |
| 540 | | // mame_printf_debug("CDE: AUDIO FORMAT\n"); |
| 540 | // mame_printf_debug("CDE: AUDIO FORMAT\n"); |
| 541 | 541 | } |
| 542 | 542 | else if (state->m_cde_command_bytes[1] == 0x78) // Data Format |
| 543 | 543 | { |
| 544 | | // mame_printf_debug("CDE: DATA FORMAT\n"); |
| 544 | // mame_printf_debug("CDE: DATA FORMAT\n"); |
| 545 | 545 | } |
| 546 | 546 | else |
| 547 | 547 | { |
| r11050 | r11051 | |
| 558 | 558 | |
| 559 | 559 | if (state->m_cde_command_bytes[1] == 0x00) // Eject |
| 560 | 560 | { |
| 561 | | // mame_printf_debug("CDE: EJECT command\n"); |
| 561 | // mame_printf_debug("CDE: EJECT command\n"); |
| 562 | 562 | } |
| 563 | 563 | else if (state->m_cde_command_bytes[1] == 0x02) // Pause |
| 564 | 564 | { |
| 565 | | // mame_printf_debug("CDE: PAUSE command\n"); |
| 565 | // mame_printf_debug("CDE: PAUSE command\n"); |
| 566 | 566 | state->m_cde_drive_state = CDE_DRIVE_STATE_PAUSED; |
| 567 | 567 | } |
| 568 | 568 | else if (state->m_cde_command_bytes[1] == 0x03) // Play |
| 569 | 569 | { |
| 570 | | // mame_printf_debug("CDE: PLAY command\n"); |
| 570 | // mame_printf_debug("CDE: PLAY command\n"); |
| 571 | 571 | } |
| 572 | 572 | else |
| 573 | 573 | { |
| r11050 | r11051 | |
| 584 | 584 | |
| 585 | 585 | state->m_cde_drive_state = CDE_DRIVE_STATE_SEEK_DONE; |
| 586 | 586 | |
| 587 | | // mame_printf_debug("CDE: SEEK %08X\n", (state->m_cde_command_bytes[1] << 16) | (state->m_cde_command_bytes[2] << 8) | (state->m_cde_command_bytes[3])); |
| 587 | // mame_printf_debug("CDE: SEEK %08X\n", (state->m_cde_command_bytes[1] << 16) | (state->m_cde_command_bytes[2] << 8) | (state->m_cde_command_bytes[3])); |
| 588 | 588 | break; |
| 589 | 589 | } |
| 590 | 590 | case 0x0b: // Get Drive State |
| r11050 | r11051 | |
| 605 | 605 | state->m_cde_enable_seek_reports = 0; |
| 606 | 606 | } |
| 607 | 607 | |
| 608 | | // mame_printf_debug("CDE: GET DRIVE STATE %02X\n", state->m_cde_command_bytes[1]); |
| 608 | // mame_printf_debug("CDE: GET DRIVE STATE %02X\n", state->m_cde_command_bytes[1]); |
| 609 | 609 | break; |
| 610 | 610 | } |
| 611 | 611 | case 0x0c: // ? |
| r11050 | r11051 | |
| 625 | 625 | state->m_cde_enable_qchannel_reports = 0; |
| 626 | 626 | } |
| 627 | 627 | |
| 628 | | // mame_printf_debug("CDE: UNKNOWN CMD 0x0c %02X\n", state->m_cde_command_bytes[1]); |
| 628 | // mame_printf_debug("CDE: UNKNOWN CMD 0x0c %02X\n", state->m_cde_command_bytes[1]); |
| 629 | 629 | break; |
| 630 | 630 | } |
| 631 | 631 | case 0x0d: // Get Switch State |
| r11050 | r11051 | |
| 637 | 637 | state->m_cde_status_bytes[2] = 0x02; |
| 638 | 638 | state->m_cde_status_byte_ptr = 0; |
| 639 | 639 | |
| 640 | | // mame_printf_debug("CDE: GET SWITCH STATE %02X\n", state->m_cde_command_bytes[1]); |
| 640 | // mame_printf_debug("CDE: GET SWITCH STATE %02X\n", state->m_cde_command_bytes[1]); |
| 641 | 641 | break; |
| 642 | 642 | } |
| 643 | 643 | case 0x21: // Mech type |
| r11050 | r11051 | |
| 655 | 655 | |
| 656 | 656 | state->m_cde_status_byte_ptr = 0; |
| 657 | 657 | |
| 658 | | // mame_printf_debug("CDE: MECH TYPE %02X, %02X, %02X\n", state->m_cde_command_bytes[1], state->m_cde_command_bytes[2], state->m_cde_command_bytes[3]); |
| 658 | // mame_printf_debug("CDE: MECH TYPE %02X, %02X, %02X\n", state->m_cde_command_bytes[1], state->m_cde_command_bytes[2], state->m_cde_command_bytes[3]); |
| 659 | 659 | break; |
| 660 | 660 | } |
| 661 | 661 | case 0x83: // Read ID |
| r11050 | r11051 | |
| 677 | 677 | |
| 678 | 678 | state->m_cde_status_byte_ptr = 0; |
| 679 | 679 | |
| 680 | | // mame_printf_debug("CDE: READ ID\n"); |
| 680 | // mame_printf_debug("CDE: READ ID\n"); |
| 681 | 681 | break; |
| 682 | 682 | } |
| 683 | 683 | default: |
| r11050 | r11051 | |
| 704 | 704 | |
| 705 | 705 | state->m_cde_command_bytes[0] = 0x0c; |
| 706 | 706 | |
| 707 | | // mame_printf_debug("CDE: SEEK REPORT\n"); |
| 707 | // mame_printf_debug("CDE: SEEK REPORT\n"); |
| 708 | 708 | } |
| 709 | 709 | break; |
| 710 | 710 | } |
| r11050 | r11051 | |
| 800 | 800 | state->m_cde_status_byte_ptr = 0; |
| 801 | 801 | state->m_cde_command_bytes[0] = 0x0c; |
| 802 | 802 | |
| 803 | | // mame_printf_debug("CDE: QCHANNEL REPORT\n"); |
| 803 | // mame_printf_debug("CDE: QCHANNEL REPORT\n"); |
| 804 | 804 | break; |
| 805 | 805 | } |
| 806 | 806 | } |
| r11050 | r11051 | |
| 961 | 961 | |
| 962 | 962 | case 0x300/4: // DMA Channel 0 enable |
| 963 | 963 | { |
| 964 | | // mame_printf_debug("CDE: DMA0 enable %08X\n", d); |
| 964 | // mame_printf_debug("CDE: DMA0 enable %08X\n", d); |
| 965 | 965 | |
| 966 | 966 | if (d & 0x20) |
| 967 | 967 | { |
| r11050 | r11051 | |
| 979 | 979 | } |
| 980 | 980 | case 0x308/4: // DMA Channel 0 destination address |
| 981 | 981 | { |
| 982 | | // mame_printf_debug("CDE: DMA0 dst addr %08X\n", d); |
| 982 | // mame_printf_debug("CDE: DMA0 dst addr %08X\n", d); |
| 983 | 983 | |
| 984 | 984 | state->m_cde_dma[0].dst_addr = d; |
| 985 | 985 | break; |
| 986 | 986 | } |
| 987 | 987 | case 0x30c/4: // DMA Channel 0 length? |
| 988 | 988 | { |
| 989 | | // mame_printf_debug("CDE: DMA0 length %08X\n", d); |
| 989 | // mame_printf_debug("CDE: DMA0 length %08X\n", d); |
| 990 | 990 | |
| 991 | 991 | state->m_cde_dma[0].length = d; |
| 992 | 992 | break; |
| 993 | 993 | } |
| 994 | 994 | case 0x318/4: // DMA Channel 0 next destination address |
| 995 | 995 | { |
| 996 | | // mame_printf_debug("CDE: DMA0 next dst addr %08X\n", d); |
| 996 | // mame_printf_debug("CDE: DMA0 next dst addr %08X\n", d); |
| 997 | 997 | |
| 998 | 998 | state->m_cde_dma[0].next_dst_addr = d; |
| 999 | 999 | break; |
| 1000 | 1000 | } |
| 1001 | 1001 | case 0x31c/4: // DMA Channel 0 next length? |
| 1002 | 1002 | { |
| 1003 | | // mame_printf_debug("CDE: DMA0 next length %08X\n", d); |
| 1003 | // mame_printf_debug("CDE: DMA0 next length %08X\n", d); |
| 1004 | 1004 | |
| 1005 | 1005 | state->m_cde_dma[0].next_length = d; |
| 1006 | 1006 | break; |
| r11050 | r11051 | |
| 1008 | 1008 | |
| 1009 | 1009 | case 0x320/4: // DMA Channel 1 enable |
| 1010 | 1010 | { |
| 1011 | | // mame_printf_debug("CDE: DMA1 enable %08X\n", d); |
| 1011 | // mame_printf_debug("CDE: DMA1 enable %08X\n", d); |
| 1012 | 1012 | break; |
| 1013 | 1013 | } |
| 1014 | 1014 | case 0x328/4: // DMA Channel 1 destination address |
| 1015 | 1015 | { |
| 1016 | | // mame_printf_debug("CDE: DMA1 dst addr %08X\n", d); |
| 1016 | // mame_printf_debug("CDE: DMA1 dst addr %08X\n", d); |
| 1017 | 1017 | |
| 1018 | 1018 | state->m_cde_dma[1].dst_addr = d; |
| 1019 | 1019 | break; |
| 1020 | 1020 | } |
| 1021 | 1021 | case 0x32c/4: // DMA Channel 1 length? |
| 1022 | 1022 | { |
| 1023 | | // mame_printf_debug("CDE: DMA1 length %08X\n", d); |
| 1023 | // mame_printf_debug("CDE: DMA1 length %08X\n", d); |
| 1024 | 1024 | |
| 1025 | 1025 | state->m_cde_dma[1].length = d; |
| 1026 | 1026 | break; |
| 1027 | 1027 | } |
| 1028 | 1028 | case 0x338/4: // DMA Channel 1 next destination address |
| 1029 | 1029 | { |
| 1030 | | // mame_printf_debug("CDE: DMA1 next dst addr %08X\n", d); |
| 1030 | // mame_printf_debug("CDE: DMA1 next dst addr %08X\n", d); |
| 1031 | 1031 | |
| 1032 | 1032 | state->m_cde_dma[1].next_dst_addr = d; |
| 1033 | 1033 | break; |
| 1034 | 1034 | } |
| 1035 | 1035 | case 0x33c/4: // DMA Channel 1 next length? |
| 1036 | 1036 | { |
| 1037 | | // mame_printf_debug("CDE: DMA1 next length %08X\n", d); |
| 1037 | // mame_printf_debug("CDE: DMA1 next length %08X\n", d); |
| 1038 | 1038 | |
| 1039 | 1039 | state->m_cde_dma[1].next_length = d; |
| 1040 | 1040 | break; |
src/emu/cpu/m68000/m68kcpu.c
| r11050 | r11051 | |
| 1016 | 1016 | case CPUINFO_INT_MAX_CYCLES: info->i = 158; break; |
| 1017 | 1017 | |
| 1018 | 1018 | case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM: info->i = 16; break; |
| 1019 | | case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM: info->i = 24; break; |
| 1020 | | case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM: info->i = 0; break; |
| 1019 | case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM: info->i = 24; break; |
| 1020 | case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM: info->i = 0; break; |
| 1021 | 1021 | |
| 1022 | 1022 | case CPUINFO_INT_INPUT_STATE + 0: info->i = 0; /* there is no level 0 */ break; |
| 1023 | 1023 | case CPUINFO_INT_INPUT_STATE + 1: info->i = (m68k->virq_state >> 1) & 1; break; |
| r11050 | r11051 | |
| 1667 | 1667 | { |
| 1668 | 1668 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1669 | 1669 | case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM: info->i = 8; break; |
| 1670 | | case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM: info->i = 22; break; |
| 1670 | case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM: info->i = 22; break; |
| 1671 | 1671 | |
| 1672 | 1672 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1673 | 1673 | case CPUINFO_FCT_INIT: info->init = CPU_INIT_NAME(m68008); break; |
| r11050 | r11051 | |
| 1773 | 1773 | case CPUINFO_INT_MAX_CYCLES: info->i = 158; break; |
| 1774 | 1774 | |
| 1775 | 1775 | case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM: info->i = 32; break; |
| 1776 | | case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM: info->i = 32; break; |
| 1776 | case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM: info->i = 32; break; |
| 1777 | 1777 | |
| 1778 | 1778 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1779 | 1779 | case CPUINFO_FCT_INIT: info->init = CPU_INIT_NAME(m68020); break; |
| r11050 | r11051 | |
| 1886 | 1886 | switch (state) |
| 1887 | 1887 | { |
| 1888 | 1888 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1889 | | case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM: info->i = 24; break; |
| 1889 | case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM: info->i = 24; break; |
| 1890 | 1890 | |
| 1891 | 1891 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1892 | 1892 | case CPUINFO_FCT_INIT: info->init = CPU_INIT_NAME(m68ec020); break; |
| r11050 | r11051 | |
| 1943 | 1943 | case CPUINFO_INT_MAX_CYCLES: info->i = 158; break; |
| 1944 | 1944 | |
| 1945 | 1945 | case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM: info->i = 32; break; |
| 1946 | | case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM: info->i = 32; break; |
| 1946 | case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM: info->i = 32; break; |
| 1947 | 1947 | |
| 1948 | 1948 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1949 | 1949 | case CPUINFO_FCT_INIT: info->init = CPU_INIT_NAME(m68030); break; |
| r11050 | r11051 | |
| 2050 | 2050 | case CPUINFO_INT_MAX_CYCLES: info->i = 158; break; |
| 2051 | 2051 | |
| 2052 | 2052 | case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM: info->i = 32; break; |
| 2053 | | case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM: info->i = 32; break; |
| 2053 | case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM: info->i = 32; break; |
| 2054 | 2054 | |
| 2055 | 2055 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2056 | 2056 | case CPUINFO_FCT_INIT: info->init = CPU_INIT_NAME(m68040); break; |
| r11050 | r11051 | |
| 2178 | 2178 | switch (state) |
| 2179 | 2179 | { |
| 2180 | 2180 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 2181 | | case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM: info->i = 32; break; |
| 2181 | case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM: info->i = 32; break; |
| 2182 | 2182 | |
| 2183 | 2183 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 2184 | 2184 | case CPUINFO_FCT_INIT: info->init = CPU_INIT_NAME(scc68070); break; |
src/emu/memory.h
| r11050 | r11051 | |
| 466 | 466 | void install_read_bank(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, const char *tag) { install_bank_generic(addrstart, addrend, addrmask, addrmirror, tag, NULL); } |
| 467 | 467 | void install_write_bank(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, const char *tag) { install_bank_generic(addrstart, addrend, addrmask, addrmirror, NULL, tag); } |
| 468 | 468 | void install_readwrite_bank(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, const char *tag) { install_bank_generic(addrstart, addrend, addrmask, addrmirror, tag, tag); } |
| 469 | | void *install_rom(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, void *baseptr = NULL) { return install_ram_generic(addrstart, addrend, addrmask, addrmirror, ROW_READ, baseptr); } |
| 470 | | void *install_writeonly(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, void *baseptr = NULL) { return install_ram_generic(addrstart, addrend, addrmask, addrmirror, ROW_WRITE, baseptr); } |
| 471 | | void *install_ram(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, void *baseptr = NULL) { return install_ram_generic(addrstart, addrend, addrmask, addrmirror, ROW_READWRITE, baseptr); } |
| 469 | void *install_rom(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, void *baseptr = NULL) { return install_ram_generic(addrstart, addrend, addrmask, addrmirror, ROW_READ, baseptr); } |
| 470 | void *install_writeonly(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, void *baseptr = NULL) { return install_ram_generic(addrstart, addrend, addrmask, addrmirror, ROW_WRITE, baseptr); } |
| 471 | void *install_ram(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, void *baseptr = NULL) { return install_ram_generic(addrstart, addrend, addrmask, addrmirror, ROW_READWRITE, baseptr); } |
| 472 | 472 | |
| 473 | 473 | // install new-style delegate handlers (short form) |
| 474 | 474 | UINT8 *install_read_handler(offs_t addrstart, offs_t addrend, read8_delegate rhandler, UINT64 unitmask = 0) { return install_read_handler(addrstart, addrend, 0, 0, rhandler, unitmask); } |
src/emu/machine/upd1990a.c
| r11050 | r11051 | |
| 86 | 86 | //************************************************************************** |
| 87 | 87 | |
| 88 | 88 | //------------------------------------------------- |
| 89 | | // convert_to_bcd - |
| 89 | // convert_to_bcd - |
| 90 | 90 | //------------------------------------------------- |
| 91 | 91 | |
| 92 | 92 | inline UINT8 upd1990a_device::convert_to_bcd(int val) |
| r11050 | r11051 | |
| 96 | 96 | |
| 97 | 97 | |
| 98 | 98 | //------------------------------------------------- |
| 99 | | // bcd_to_integer - |
| 99 | // bcd_to_integer - |
| 100 | 100 | //------------------------------------------------- |
| 101 | 101 | |
| 102 | 102 | inline int upd1990a_device::bcd_to_integer(UINT8 val) |
| r11050 | r11051 | |
| 106 | 106 | |
| 107 | 107 | |
| 108 | 108 | //------------------------------------------------- |
| 109 | | // advance_seconds - |
| 109 | // advance_seconds - |
| 110 | 110 | //------------------------------------------------- |
| 111 | 111 | |
| 112 | 112 | inline void upd1990a_device::advance_seconds() |
| r11050 | r11051 | |
| 263 | 263 | |
| 264 | 264 | |
| 265 | 265 | //------------------------------------------------- |
| 266 | | // oe_w - |
| 266 | // oe_w - |
| 267 | 267 | //------------------------------------------------- |
| 268 | 268 | |
| 269 | 269 | WRITE_LINE_MEMBER( upd1990a_device::oe_w ) |
| r11050 | r11051 | |
| 275 | 275 | |
| 276 | 276 | |
| 277 | 277 | //------------------------------------------------- |
| 278 | | // cs_w - |
| 278 | // cs_w - |
| 279 | 279 | //------------------------------------------------- |
| 280 | 280 | |
| 281 | 281 | WRITE_LINE_MEMBER( upd1990a_device::cs_w ) |
| r11050 | r11051 | |
| 287 | 287 | |
| 288 | 288 | |
| 289 | 289 | //------------------------------------------------- |
| 290 | | // stb_w - |
| 290 | // stb_w - |
| 291 | 291 | //------------------------------------------------- |
| 292 | 292 | |
| 293 | 293 | WRITE_LINE_MEMBER( upd1990a_device::stb_w ) |
| r11050 | r11051 | |
| 425 | 425 | |
| 426 | 426 | |
| 427 | 427 | //------------------------------------------------- |
| 428 | | // clk_w - |
| 428 | // clk_w - |
| 429 | 429 | //------------------------------------------------- |
| 430 | 430 | |
| 431 | 431 | WRITE_LINE_MEMBER( upd1990a_device::clk_w ) |
| r11050 | r11051 | |
| 467 | 467 | |
| 468 | 468 | |
| 469 | 469 | //------------------------------------------------- |
| 470 | | // c0_w - |
| 470 | // c0_w - |
| 471 | 471 | //------------------------------------------------- |
| 472 | 472 | |
| 473 | 473 | WRITE_LINE_MEMBER( upd1990a_device::c0_w ) |
| r11050 | r11051 | |
| 479 | 479 | |
| 480 | 480 | |
| 481 | 481 | //------------------------------------------------- |
| 482 | | // c1_w - |
| 482 | // c1_w - |
| 483 | 483 | //------------------------------------------------- |
| 484 | 484 | |
| 485 | 485 | WRITE_LINE_MEMBER( upd1990a_device::c1_w ) |
| r11050 | r11051 | |
| 491 | 491 | |
| 492 | 492 | |
| 493 | 493 | //------------------------------------------------- |
| 494 | | // c2_w - |
| 494 | // c2_w - |
| 495 | 495 | //------------------------------------------------- |
| 496 | 496 | |
| 497 | 497 | WRITE_LINE_MEMBER( upd1990a_device::c2_w ) |
| r11050 | r11051 | |
| 503 | 503 | |
| 504 | 504 | |
| 505 | 505 | //------------------------------------------------- |
| 506 | | // data_in_w - |
| 506 | // data_in_w - |
| 507 | 507 | //------------------------------------------------- |
| 508 | 508 | |
| 509 | 509 | WRITE_LINE_MEMBER( upd1990a_device::data_in_w ) |
| r11050 | r11051 | |
| 515 | 515 | |
| 516 | 516 | |
| 517 | 517 | //------------------------------------------------- |
| 518 | | // data_out_r - |
| 518 | // data_out_r - |
| 519 | 519 | //------------------------------------------------- |
| 520 | 520 | |
| 521 | 521 | READ_LINE_MEMBER( upd1990a_device::data_out_r ) |
| r11050 | r11051 | |
| 525 | 525 | |
| 526 | 526 | |
| 527 | 527 | //------------------------------------------------- |
| 528 | | // tp_r - |
| 528 | // tp_r - |
| 529 | 529 | //------------------------------------------------- |
| 530 | 530 | |
| 531 | 531 | READ_LINE_MEMBER( upd1990a_device::tp_r ) |
src/emu/machine/z8536.c
| r11050 | r11051 | |
| 166 | 166 | |
| 167 | 167 | // master interrupt control register |
| 168 | 168 | #define MICR_RESET 0x01 // reset |
| 169 | | #define MICR_RJA 0x02 // right justified address |
| 169 | #define MICR_RJA 0x02 // right justified address |
| 170 | 170 | #define MICR_CT_VIS 0x04 // counter/timer vector includes status |
| 171 | 171 | #define MICR_PB_VIS 0x08 // port B vector includes status |
| 172 | 172 | #define MICR_PA_VIS 0x10 // port A vector includes status |
| 173 | 173 | #define MICR_NV 0x20 // no vector |
| 174 | | #define MICR_DLC 0x40 // disable lower chain |
| 175 | | #define MICR_MIE 0x80 // master interrupt enable |
| 174 | #define MICR_DLC 0x40 // disable lower chain |
| 175 | #define MICR_MIE 0x80 // master interrupt enable |
| 176 | 176 | |
| 177 | 177 | |
| 178 | 178 | // master configuration control register |
| r11050 | r11051 | |
| 287 | 287 | inline UINT8 z8536_device::read_register(offs_t offset) |
| 288 | 288 | { |
| 289 | 289 | UINT8 data = 0; |
| 290 | | |
| 290 | |
| 291 | 291 | data = m_register[offset]; // HACK |
| 292 | 292 | |
| 293 | 293 | switch (offset) |
| r11050 | r11051 | |
| 295 | 295 | case PORT_A_DATA: |
| 296 | 296 | data = devcb_call_read8(&m_in_pa_func, 0); |
| 297 | 297 | break; |
| 298 | | |
| 298 | |
| 299 | 299 | case PORT_B_DATA: |
| 300 | 300 | data = devcb_call_read8(&m_in_pb_func, 0); |
| 301 | 301 | break; |
| 302 | | |
| 302 | |
| 303 | 303 | case PORT_C_DATA: |
| 304 | 304 | data = 0xf0 | (devcb_call_read8(&m_in_pc_func, 0) & 0x0f); |
| 305 | 305 | break; |
| 306 | | |
| 306 | |
| 307 | 307 | default: |
| 308 | 308 | logerror("Z8536 '%s' Unimplemented read from register %u\n", tag(), offset); |
| 309 | 309 | } |
| 310 | | |
| 310 | |
| 311 | 311 | return data; |
| 312 | 312 | } |
| 313 | 313 | |
| r11050 | r11051 | |
| 340 | 340 | m_state = STATE_0; |
| 341 | 341 | } |
| 342 | 342 | break; |
| 343 | | |
| 343 | |
| 344 | 344 | case PORT_A_DATA: |
| 345 | 345 | devcb_call_write8(&m_out_pa_func, 0, data); |
| 346 | 346 | break; |
| 347 | | |
| 347 | |
| 348 | 348 | case PORT_B_DATA: |
| 349 | 349 | devcb_call_write8(&m_out_pb_func, 0, data); |
| 350 | 350 | break; |
| 351 | | |
| 351 | |
| 352 | 352 | case PORT_C_DATA: |
| 353 | 353 | { |
| 354 | 354 | UINT8 mask = (data & 0xf0) | (data >> 4); |
| 355 | 355 | |
| 356 | 356 | m_output[PORT_C] = (m_output[PORT_C] & mask) | ((data & 0x0f) & (mask ^ 0xff)); |
| 357 | | |
| 357 | |
| 358 | 358 | devcb_call_write8(&m_out_pc_func, 0, m_output[PORT_C]); |
| 359 | 359 | } |
| 360 | 360 | break; |
| 361 | | |
| 361 | |
| 362 | 362 | default: |
| 363 | 363 | logerror("Z8536 '%s' Unimplemented write %02x to register %u\n", tag(), data, offset); |
| 364 | 364 | } |
| 365 | | |
| 365 | |
| 366 | 366 | m_register[offset] = data; // HACK |
| 367 | 367 | } |
| 368 | 368 | |
| r11050 | r11051 | |
| 374 | 374 | inline void z8536_device::write_register(offs_t offset, UINT8 data, UINT8 mask) |
| 375 | 375 | { |
| 376 | 376 | UINT8 combined_data = (data & mask) | (m_register[offset] & (mask ^ 0xff)); |
| 377 | | |
| 377 | |
| 378 | 378 | write_register(offset, combined_data); |
| 379 | 379 | } |
| 380 | 380 | |
| 381 | 381 | |
| 382 | 382 | //------------------------------------------------- |
| 383 | | // count - |
| 383 | // count - |
| 384 | 384 | //------------------------------------------------- |
| 385 | 385 | |
| 386 | 386 | inline void z8536_device::count(device_timer_id id) |
| r11050 | r11051 | |
| 389 | 389 | |
| 390 | 390 | |
| 391 | 391 | //------------------------------------------------- |
| 392 | | // trigger - |
| 392 | // trigger - |
| 393 | 393 | //------------------------------------------------- |
| 394 | 394 | |
| 395 | 395 | inline void z8536_device::trigger(device_timer_id id) |
| r11050 | r11051 | |
| 398 | 398 | |
| 399 | 399 | |
| 400 | 400 | //------------------------------------------------- |
| 401 | | // gate - |
| 401 | // gate - |
| 402 | 402 | //------------------------------------------------- |
| 403 | 403 | |
| 404 | 404 | inline void z8536_device::gate(device_timer_id id) |
| r11050 | r11051 | |
| 432 | 432 | m_timer[TIMER_1] = timer_alloc(TIMER_1); |
| 433 | 433 | m_timer[TIMER_2] = timer_alloc(TIMER_2); |
| 434 | 434 | m_timer[TIMER_3] = timer_alloc(TIMER_3); |
| 435 | | |
| 435 | |
| 436 | 436 | // resolve callbacks |
| 437 | 437 | devcb_resolve_write_line(&m_out_int_func, &m_config.m_out_int_func, this); |
| 438 | 438 | devcb_resolve_read8(&m_in_pa_func, &m_config.m_in_pa_func, this); |
| r11050 | r11051 | |
| 451 | 451 | void z8536_device::device_reset() |
| 452 | 452 | { |
| 453 | 453 | m_state = STATE_RESET; |
| 454 | | |
| 454 | |
| 455 | 455 | for (int i = 0; i < 48; i++) |
| 456 | 456 | { |
| 457 | 457 | m_register[i] = 0; |
| 458 | 458 | } |
| 459 | | |
| 459 | |
| 460 | 460 | m_register[MASTER_INTERRUPT_CONTROL] = MICR_RESET; |
| 461 | 461 | m_pointer = 0; |
| 462 | 462 | } |
| r11050 | r11051 | |
| 473 | 473 | case TIMER_1: |
| 474 | 474 | count(TIMER_1); |
| 475 | 475 | break; |
| 476 | | |
| 476 | |
| 477 | 477 | case TIMER_2: |
| 478 | 478 | count(TIMER_2); |
| 479 | 479 | break; |
| 480 | | |
| 480 | |
| 481 | 481 | case TIMER_3: |
| 482 | 482 | count(TIMER_3); |
| 483 | 483 | break; |
| r11050 | r11051 | |
| 527 | 527 | break; |
| 528 | 528 | } |
| 529 | 529 | } |
| 530 | | |
| 530 | |
| 531 | 531 | return data; |
| 532 | 532 | } |
| 533 | 533 | |