From cbee4097f0d2861e3e86e4cedd8f7bd9479a1d77 Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Mon, 26 Feb 2018 19:34:55 +0100 Subject: nmk16.cpp, powerbal.cpp: moved atombjt from the former to the latter driver. Gives sprites, though it needs some more work (nw) --- src/mame/drivers/nmk16.cpp | 126 --------------------------- src/mame/drivers/powerbal.cpp | 197 ++++++++++++++++++++++++++++++++++++++---- src/mame/includes/nmk16.h | 1 - src/mame/mame.lst | 2 +- 4 files changed, 182 insertions(+), 144 deletions(-) diff --git a/src/mame/drivers/nmk16.cpp b/src/mame/drivers/nmk16.cpp index e356d3af16a..67168813772 100644 --- a/src/mame/drivers/nmk16.cpp +++ b/src/mame/drivers/nmk16.cpp @@ -1131,24 +1131,6 @@ ADDRESS_MAP_START(nmk16_state::bjtwin_map) AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_SHARE("mainram") ADDRESS_MAP_END -ADDRESS_MAP_START(nmk16_state::atombjt_map) - AM_RANGE(0x000000, 0x03ffff) AM_ROM - AM_RANGE(0x080014, 0x080015) AM_NOP // always 1 in this bootleg. Flip-screen switch not present according to dip sheet. - AM_RANGE(0x088000, 0x0887ff) AM_RAM_DEVWRITE("palette", palette_device, write16) AM_SHARE("palette") - AM_RANGE(0x094000, 0x094001) AM_WRITE(nmk_tilebank_w) - AM_RANGE(0x094002, 0x094003) AM_WRITENOP /* IRQ enable? */ - AM_RANGE(0x09c000, 0x09cfff) AM_MIRROR(0x1000) AM_RAM_WRITE(nmk_bgvideoram_w<0>) AM_SHARE("nmk_bgvideoram0") - AM_RANGE(0x0c2010, 0x0c2011) AM_READ_PORT("IN0") - AM_RANGE(0x0c2012, 0x0c2013) AM_READ_PORT("IN1") - AM_RANGE(0x0c2014, 0x0c2015) AM_READ(atombjt_unkr_r) - AM_RANGE(0x0c2016, 0x0c2017) AM_READ_PORT("DSW1") - AM_RANGE(0x0c2018, 0x0c2019) AM_READ_PORT("DSW2") -// AM_RANGE(0x0c201c, 0x0c201d) // oki banking related? - AM_RANGE(0x0c201e, 0x0c201f) AM_DEVREADWRITE8("oki1", okim6295_device, read, write, 0x00ff) - AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_SHARE("mainram") - AM_RANGE(0x100000, 0x101fff) AM_RAM -ADDRESS_MAP_END - static INPUT_PORTS_START( vandyke ) PORT_START("IN0") PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) @@ -2957,20 +2939,6 @@ static INPUT_PORTS_START( bjtwin ) PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) INPUT_PORTS_END -static INPUT_PORTS_START( atombjt ) // verified with dip sheet - PORT_INCLUDE(bjtwin) - - PORT_MODIFY("DSW1") - PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:8") - PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x01, DEF_STR( On ) ) - - PORT_MODIFY("DSW2") - PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:8") - PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) - PORT_DIPSETTING( 0x01, DEF_STR( On ) ) -INPUT_PORTS_END - static INPUT_PORTS_START( nouryoku ) PORT_START("IN0") PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) @@ -3764,36 +3732,6 @@ static GFXDECODE_START( strahl ) GFXDECODE_END - -static const gfx_layout atombjt_charlayout = -{ - 8,8, - RGN_FRAC(1,1), - 4, - { 0,8,16,24}, - { 0,1,2,3,4,5,6,7 }, - { 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32 }, - 32*8 -}; - -static const gfx_layout atombjt_tilelayout = -{ - 16,16, - RGN_FRAC(1,1), - 4, - { 0,8,16,24}, - { 0,1,2,3,4,5,6,7, 512,513,514,515,516,517,518,519 }, - { 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32, 256+0*32, 256+1*32, 256+2*32, 256+3*32, 256+4*32, 256+5*32, 256+6*32, 256+7*32 }, - 128*8 -}; - -static GFXDECODE_START( atombjt ) - GFXDECODE_ENTRY( "fgtile", 0, atombjt_charlayout, 0x000, 16 ) /* color 0x000-0x0ff */ - GFXDECODE_ENTRY( "bgtile", 0, atombjt_charlayout, 0x000, 16 ) /* color 0x000-0x0ff */ - GFXDECODE_ENTRY( "sprites", 0, atombjt_tilelayout, 0x100, 16 ) /* color 0x100-0x1ff */ -GFXDECODE_END - - /* ---- @@ -4649,36 +4587,6 @@ MACHINE_CONFIG_START(nmk16_state::bjtwin) MACHINE_CONFIG_END - -MACHINE_CONFIG_START(nmk16_state::atombjt) - - /* basic machine hardware */ - MCFG_CPU_ADD("maincpu", M68000, 10000000) /* there is a 28mhz crystal and a 10mhz crystal near the 12 rated CPU */ - MCFG_CPU_PROGRAM_MAP(atombjt_map) - MCFG_CPU_VBLANK_INT_DRIVER("screen", nmk16_state, irq6_line_hold) // recoded to use this irq - - /* video hardware */ - NMK_HACKY_SCREEN_HIRES - MCFG_SCREEN_UPDATE_DRIVER(nmk16_state, screen_update_bjtwin) - - - MCFG_GFXDECODE_ADD("gfxdecode", "palette", atombjt) - MCFG_PALETTE_ADD("palette", 1024) - MCFG_PALETTE_FORMAT(RRRRGGGGBBBBRGBx) - - MCFG_VIDEO_START_OVERRIDE(nmk16_state,bjtwin) - - // the bootleg just has a single OKI - /* sound hardware */ - MCFG_SPEAKER_STANDARD_MONO("mono") - - MCFG_OKIM6295_ADD("oki1", 10000000/8, PIN7_LOW) // divider and pin not verified - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20) - MCFG_DEVICE_ADDRESS_MAP(0, oki1_map) -MACHINE_CONFIG_END - - - TIMER_DEVICE_CALLBACK_MEMBER(nmk16_state::manybloc_scanline) { int scanline = param; @@ -4990,11 +4898,6 @@ DRIVER_INIT_MEMBER(nmk16_state,bjtwin) } -DRIVER_INIT_MEMBER(nmk16_state,atombjt) -{ - m_okibank[0]->configure_entries(0, 4, memregion("oki1")->base() + 0x20000, 0x20000); -} - /* NO NMK004, it has a PIC instead */ READ16_MEMBER(nmk16_state::vandykeb_r){ return 0x0000; } DRIVER_INIT_MEMBER(nmk16_state,vandykeb) @@ -6852,34 +6755,6 @@ ROM_START( bjtwinpa ) ROM_LOAD( "bottom.ic27", 0x0c0000, 0x80000, CRC(6ebeb9e4) SHA1(b547b2fbcc0a35d6183dd4f19684b04839690a2b) ) ROM_END -ROM_START( atombjt ) // based off bjtwina set - ROM_REGION( 0x40000, "maincpu", 0 ) /* 68000 code */ - ROM_LOAD16_BYTE( "22.u67", 0x00000, 0x20000, CRC(bead8c70) SHA1(2694bb0639f6b94119c21faf3810f00ef20b50da) ) - ROM_LOAD16_BYTE( "21.u66", 0x00001, 0x20000, CRC(73e3d488) SHA1(7deed6e3aeda1902b75746a9b0a2737632425867) ) - - ROM_REGION( 0x200000, "gfxtemp", ROMREGION_ERASEFF ) // first half of these is the text tiles (repeated multiple times) second half the bgs - ROM_LOAD32_BYTE( "23.u36", 0x000003, 0x80000, CRC(a3fb6b91) SHA1(477f5722a6bb23f089f32b677efbf69e9dce4b74) ) - ROM_LOAD32_BYTE( "24.u42", 0x000002, 0x80000, CRC(4c30e15f) SHA1(f92185743594e4e4573ac3f6c0c091802a08d5bd) ) - ROM_LOAD32_BYTE( "25.u39", 0x000001, 0x80000, CRC(ff1af60f) SHA1(4fe626c9d59ab9b945535b2f796f13adc900f1ed) ) - ROM_LOAD32_BYTE( "26.u45", 0x000000, 0x80000, CRC(6cc4e817) SHA1(70f2ab50e228a029d3157c94fe0a79e7aad010bd) ) - - ROM_REGION( 0x100000, "fgtile", 0 ) - ROM_COPY( "gfxtemp", 0x000000, 0x00000, 0x100000 ) - - ROM_REGION( 0x100000, "bgtile", 0 ) - ROM_COPY( "gfxtemp", 0x100000, 0x00000, 0x100000 ) - - ROM_REGION( 0x100000, "sprites", 0 ) - ROM_LOAD32_BYTE( "27.u86", 0x000003, 0x40000, CRC(5a853e5c) SHA1(dfa4e891f716bbf8a038a14a24276cb690f65230) ) - ROM_LOAD32_BYTE( "28.u85", 0x000002, 0x40000, CRC(41970bf6) SHA1(85b5677585dbdf96acabb59e6369d62d4c2f0e8e) ) - ROM_LOAD32_BYTE( "29.u84", 0x000001, 0x40000, CRC(59a7d610) SHA1(0dc39c09f7f55dbd12ddb5e2e4ba9d86a2ba24d8) ) - ROM_LOAD32_BYTE( "30.u83", 0x000000, 0x40000, CRC(9b2dfebd) SHA1(562ab22dc01a129e1b8c201665bbab0561254c2a) ) - - ROM_REGION( 0x80000, "oki1", 0 ) /* OKIM6295 samples */ - ROM_LOAD( "20.u16", 0x00000, 0x80000, CRC(71c74ff9) SHA1(3c22fb2976ab332e9bb1e208432ca985f274adac) ) -ROM_END - - ROM_START( nouryoku ) ROM_REGION( 0x80000, "maincpu", 0 ) /* 68000 code */ ROM_LOAD16_BYTE( "ic76.1", 0x00000, 0x40000, CRC(26075988) SHA1(c3d0eef0417be3f78008c026915fd7e2fd589563) ) @@ -8086,7 +7961,6 @@ GAME( 1993, bjtwin, 0, bjtwin, bjtwin, nmk16_state, bjtwin, ROT27 GAME( 1993, bjtwina, bjtwin, bjtwin, bjtwin, nmk16_state, bjtwin, ROT270, "NMK", "Bombjack Twin (set 2)", MACHINE_NO_COCKTAIL ) GAME( 1993, bjtwinp, bjtwin, bjtwin, bjtwin, nmk16_state, 0, ROT270, "NMK", "Bombjack Twin (prototype? with adult pictures, set 1)", MACHINE_NO_COCKTAIL ) // Cheap looking PCB, but Genuine NMK PCB, GFX aren't encrypted (maybe Korean version not proto?) GAME( 1993, bjtwinpa, bjtwin, bjtwin, bjtwin, nmk16_state, bjtwin, ROT270, "NMK", "Bombjack Twin (prototype? with adult pictures, set 2)", MACHINE_NO_COCKTAIL ) // same PCB as above, different program revision, GFX are encrypted -GAME( 1993, atombjt, bjtwin, atombjt, atombjt, nmk16_state, atombjt, ROT270, "bootleg (Kyon K.)", "Atom (bootleg of Bombjack Twin)", MACHINE_NO_COCKTAIL | MACHINE_IMPERFECT_SOUND | MACHINE_NOT_WORKING ) // some non-trivial mods to the gfx and sound hw (playmark hardware?) GAME( 1995, nouryoku, 0, bjtwin, nouryoku, nmk16_state, nmk, ROT0, "Tecmo", "Nouryoku Koujou Iinkai", MACHINE_NO_COCKTAIL ) diff --git a/src/mame/drivers/powerbal.cpp b/src/mame/drivers/powerbal.cpp index 4362e055689..36dc6bd36d3 100644 --- a/src/mame/drivers/powerbal.cpp +++ b/src/mame/drivers/powerbal.cpp @@ -32,27 +32,34 @@ public: : playmark_state(mconfig, type, tag) { } - /* powerbal-specific */ + DECLARE_DRIVER_INIT(powerbal); + DECLARE_DRIVER_INIT(magicstk); + + void magicstk(machine_config &config); + void powerbal(machine_config &config); + void atombjt(machine_config &config); + + +private: int m_tilebank; int m_bg_yoffset; - DECLARE_DRIVER_INIT(powerbal); - DECLARE_DRIVER_INIT(magicstk); TILE_GET_INFO_MEMBER(powerbal_get_bg_tile_info); DECLARE_MACHINE_START(powerbal); DECLARE_MACHINE_RESET(powerbal); DECLARE_VIDEO_START(powerbal); + DECLARE_VIDEO_START(atombjt); uint32_t screen_update_powerbal(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites_powerbal( bitmap_ind16 &bitmap, const rectangle &cliprect ); DECLARE_WRITE16_MEMBER(magicstk_coin_eeprom_w); DECLARE_WRITE16_MEMBER(magicstk_bgvideoram_w); DECLARE_WRITE16_MEMBER(tile_banking_w); + DECLARE_WRITE16_MEMBER(atombjt_tile_banking_w); DECLARE_WRITE16_MEMBER(oki_banking); - void magicstk(machine_config &config); - void powerbal(machine_config &config); void magicstk_main_map(address_map &map); void oki_map(address_map &map); void powerbal_main_map(address_map &map); + void atombjt_map(address_map &map); }; @@ -83,6 +90,15 @@ WRITE16_MEMBER(powerbal_state::tile_banking_w) } } +WRITE16_MEMBER(powerbal_state::atombjt_tile_banking_w) +{ + if ((data & 0x0f) != m_tilebank) + { + m_tilebank = data & 0x0f; + m_bg_tilemap->mark_all_dirty(); + } +} + WRITE16_MEMBER(powerbal_state::oki_banking) { int bank = data & 3; @@ -130,6 +146,27 @@ ADDRESS_MAP_START(powerbal_state::powerbal_main_map) AM_RANGE(0x103000, 0x103fff) AM_RAM ADDRESS_MAP_END +ADDRESS_MAP_START(powerbal_state::atombjt_map) + AM_RANGE(0x000000, 0x03ffff) AM_ROM + AM_RANGE(0x080008, 0x080009) AM_READNOP // remnant of the original? + AM_RANGE(0x080014, 0x080015) AM_NOP // always 1 in this bootleg. Flip-screen switch not present according to dip sheet. + AM_RANGE(0x088000, 0x0883ff) AM_RAM_DEVWRITE("palette", palette_device, write16) AM_SHARE("palette") + AM_RANGE(0x094000, 0x094001) AM_WRITE(atombjt_tile_banking_w) + AM_RANGE(0x094002, 0x094003) AM_NOP /* IRQ enable? */ + AM_RANGE(0x09c000, 0x09cfff) AM_MIRROR(0x1000) AM_RAM_WRITE(magicstk_bgvideoram_w) AM_SHARE("videoram1") + AM_RANGE(0x0c2010, 0x0c2011) AM_READ_PORT("IN0") + AM_RANGE(0x0c2012, 0x0c2013) AM_READ_PORT("IN1") + AM_RANGE(0x0c2014, 0x0c2015) AM_READ_PORT("IN2") + AM_RANGE(0x0c2016, 0x0c2017) AM_READ_PORT("DSW1") + AM_RANGE(0x0c2018, 0x0c2019) AM_READ_PORT("DSW2") + AM_RANGE(0x0c201c, 0x0c201d) AM_WRITE(oki_banking) + AM_RANGE(0x0c201e, 0x0c201f) AM_DEVREADWRITE8("oki", okim6295_device, read, write, 0x00ff) + AM_RANGE(0x0c4000, 0x0c4001) AM_WRITENOP // always 0? + AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_SHARE("mainram") + AM_RANGE(0x100000, 0x100fff) AM_RAM + AM_RANGE(0x101000, 0x101fff) AM_RAM AM_SHARE("spriteram") +ADDRESS_MAP_END + ADDRESS_MAP_START(powerbal_state::oki_map) AM_RANGE(0x00000, 0x1ffff) AM_ROM AM_RANGE(0x20000, 0x3ffff) AM_ROMBANK("okibank") @@ -394,6 +431,89 @@ static INPUT_PORTS_START( hotminda ) PORT_DIPSETTING( 0xe0, "Easy 9" ) INPUT_PORTS_END +static INPUT_PORTS_START( atombjt ) // verified with dip sheet + PORT_START("IN0") + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* shown in service mode, but no effect */ + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Maybe unused */ + + PORT_START("IN1") + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) + + PORT_START("IN2") + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) + + PORT_START("DSW1") + PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:8") + PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x01, DEF_STR( On ) ) + PORT_DIPNAME( 0x0e, 0x0e, "Starting level" ) PORT_DIPLOCATION("SW1:7,6,5") + PORT_DIPSETTING( 0x08, "Germany" ) + PORT_DIPSETTING( 0x04, "Thailand" ) + PORT_DIPSETTING( 0x0c, "Nevada" ) + PORT_DIPSETTING( 0x0e, DEF_STR( Japan ) ) + PORT_DIPSETTING( 0x06, DEF_STR( Korea ) ) + PORT_DIPSETTING( 0x0a, "England" ) + PORT_DIPSETTING( 0x02, DEF_STR( Hong_Kong ) ) + PORT_DIPSETTING( 0x00, DEF_STR( China ) ) + PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:4,3") + PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) + PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) + PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) + PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) + PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:2,1") + PORT_DIPSETTING( 0x00, "1" ) + PORT_DIPSETTING( 0x40, "2" ) + PORT_DIPSETTING( 0xc0, "3" ) + PORT_DIPSETTING( 0x80, "4" ) + + PORT_START("DSW2") + PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW2:8") + PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x01, DEF_STR( On ) ) + PORT_DIPNAME( 0x02, 0x02, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:7") + PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x02, DEF_STR( On ) ) + PORT_DIPNAME( 0x1c, 0x1c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW2:6,5,4") + PORT_DIPSETTING( 0x10, DEF_STR( 4C_1C ) ) + PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) + PORT_DIPSETTING( 0x18, DEF_STR( 2C_1C ) ) + PORT_DIPSETTING( 0x1c, DEF_STR( 1C_1C ) ) + PORT_DIPSETTING( 0x0c, DEF_STR( 1C_2C ) ) + PORT_DIPSETTING( 0x14, DEF_STR( 1C_3C ) ) + PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) + PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) + PORT_DIPNAME( 0xe0, 0xe0, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW2:3,2,1") + PORT_DIPSETTING( 0x80, DEF_STR( 4C_1C ) ) + PORT_DIPSETTING( 0x40, DEF_STR( 3C_1C ) ) + PORT_DIPSETTING( 0xc0, DEF_STR( 2C_1C ) ) + PORT_DIPSETTING( 0xe0, DEF_STR( 1C_1C ) ) + PORT_DIPSETTING( 0x60, DEF_STR( 1C_2C ) ) + PORT_DIPSETTING( 0xa0, DEF_STR( 1C_3C ) ) + PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) ) + PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) +INPUT_PORTS_END + + TILE_GET_INFO_MEMBER(powerbal_state::powerbal_get_bg_tile_info) { int code = (m_videoram1[tile_index] & 0x07ff) + m_tilebank * 0x800; @@ -407,23 +527,21 @@ TILE_GET_INFO_MEMBER(powerbal_state::powerbal_get_bg_tile_info) void powerbal_state::draw_sprites_powerbal(bitmap_ind16 &bitmap, const rectangle &cliprect ) { - uint16_t *spriteram = m_spriteram; - int offs; int height = m_gfxdecode->gfx(0)->height(); - for (offs = 4; offs < m_spriteram.bytes() / 2; offs += 4) + for (int offs = 4; offs < m_spriteram.bytes() / 2; offs += 4) { int sx, sy, code, color, flipx; - sy = spriteram[offs + 3 - 4]; /* typical Playmark style... */ + sy = m_spriteram[offs + 3 - 4]; /* typical Playmark style... */ if (sy & 0x8000) return; /* end of list marker */ flipx = sy & 0x4000; - sx = (spriteram[offs + 1] & 0x01ff) - 16 - 7; + sx = (m_spriteram[offs + 1] & 0x01ff) - 16 - 7; sy = (256 - 8 - height - sy) & 0xff; - code = spriteram[offs + 2]; - color = (spriteram[offs + 1] & 0xf000) >> 12; + code = m_spriteram[offs + 2]; + color = (m_spriteram[offs + 1] & 0xf000) >> 12; m_gfxdecode->gfx(0)->transpen(bitmap,cliprect, code, @@ -442,6 +560,16 @@ VIDEO_START_MEMBER(powerbal_state,powerbal) m_bg_tilemap->set_scrolly(0, m_bg_yoffset); } +VIDEO_START_MEMBER(powerbal_state,atombjt) +{ + m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(powerbal_state::powerbal_get_bg_tile_info),this), TILEMAP_SCAN_COLS, 8, 8, 64, 32); + + m_xoffset = 32; + m_yoffset = 8; + + m_bg_tilemap->set_scrollx(0, -64); +} + uint32_t powerbal_state::screen_update_powerbal(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0); @@ -562,6 +690,20 @@ MACHINE_CONFIG_START(powerbal_state::magicstk) MCFG_DEVICE_ADDRESS_MAP(0, oki_map) MACHINE_CONFIG_END +MACHINE_CONFIG_START(powerbal_state::atombjt) + + powerbal(config); + + MCFG_CPU_MODIFY("maincpu") + MCFG_CPU_PROGRAM_MAP(atombjt_map) + MCFG_CPU_VBLANK_INT_DRIVER("screen", powerbal_state, irq6_line_hold) + + MCFG_SCREEN_MODIFY("screen") + MCFG_SCREEN_SIZE(512, 256) \ + MCFG_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 2*8, 30*8-1) \ + + MCFG_VIDEO_START_OVERRIDE(powerbal_state,atombjt) +MACHINE_CONFIG_END /* Power Balls @@ -690,6 +832,28 @@ ROM_START( hotminda ) ROM_LOAD( "rom10.rom", 0x00000, 0x40000, CRC(0bf3a3e5) SHA1(2ae06f37a6bcd20bc5fbaa90d970aba2ebf3cf5a) ) ROM_END +ROM_START( atombjt ) // based off bjtwina set + ROM_REGION( 0x40000, "maincpu", 0 ) + ROM_LOAD16_BYTE( "22.u67", 0x00000, 0x20000, CRC(bead8c70) SHA1(2694bb0639f6b94119c21faf3810f00ef20b50da) ) + ROM_LOAD16_BYTE( "21.u66", 0x00001, 0x20000, CRC(73e3d488) SHA1(7deed6e3aeda1902b75746a9b0a2737632425867) ) + + ROM_REGION( 0x200000, "gfx1", 0 ) + ROM_LOAD( "23.u36", 0x000000, 0x80000, CRC(a3fb6b91) SHA1(477f5722a6bb23f089f32b677efbf69e9dce4b74) ) + ROM_LOAD( "24.u42", 0x080000, 0x80000, CRC(4c30e15f) SHA1(f92185743594e4e4573ac3f6c0c091802a08d5bd) ) + ROM_LOAD( "25.u39", 0x100000, 0x80000, CRC(ff1af60f) SHA1(4fe626c9d59ab9b945535b2f796f13adc900f1ed) ) + ROM_LOAD( "26.u45", 0x180000, 0x80000, CRC(6cc4e817) SHA1(70f2ab50e228a029d3157c94fe0a79e7aad010bd) ) + + ROM_REGION( 0x100000, "gfx2", 0 ) + ROM_LOAD( "27.u86", 0x000000, 0x40000, CRC(5a853e5c) SHA1(dfa4e891f716bbf8a038a14a24276cb690f65230) ) + ROM_LOAD( "28.u85", 0x040000, 0x40000, CRC(41970bf6) SHA1(85b5677585dbdf96acabb59e6369d62d4c2f0e8e) ) + ROM_LOAD( "29.u84", 0x080000, 0x40000, CRC(59a7d610) SHA1(0dc39c09f7f55dbd12ddb5e2e4ba9d86a2ba24d8) ) + ROM_LOAD( "30.u83", 0x0c0000, 0x40000, CRC(9b2dfebd) SHA1(562ab22dc01a129e1b8c201665bbab0561254c2a) ) + + ROM_REGION( 0x80000, "oki", 0 ) + ROM_LOAD( "20.u16", 0x00000, 0x80000, CRC(71c74ff9) SHA1(3c22fb2976ab332e9bb1e208432ca985f274adac) ) +ROM_END + + DRIVER_INIT_MEMBER(powerbal_state,powerbal) { m_bg_yoffset = 16; @@ -706,7 +870,8 @@ DRIVER_INIT_MEMBER(powerbal_state,magicstk) * Game Drivers * *************************/ -// YEAR NAME PARENT MACHINE INPUT STATE INIT ROT COMPANY FULLNAME FLAGS -GAME( 1994, powerbal, 0, powerbal, powerbal, powerbal_state, powerbal, ROT0, "Playmark", "Power Balls", MACHINE_SUPPORTS_SAVE ) -GAME( 1995, magicstk, 0, magicstk, magicstk, powerbal_state, magicstk, ROT0, "Playmark", "Magic Sticks", MACHINE_SUPPORTS_SAVE ) -GAME( 1995, hotminda, hotmind, magicstk, hotminda, powerbal_state, magicstk, ROT0, "Playmark", "Hot Mind (adjustable prize)", MACHINE_SUPPORTS_SAVE ) +// YEAR NAME PARENT MACHINE INPUT STATE INIT ROT COMPANY FULLNAME FLAGS +GAME( 1994, powerbal, 0, powerbal, powerbal, powerbal_state, powerbal, ROT0, "Playmark", "Power Balls", MACHINE_SUPPORTS_SAVE ) +GAME( 1995, magicstk, 0, magicstk, magicstk, powerbal_state, magicstk, ROT0, "Playmark", "Magic Sticks", MACHINE_SUPPORTS_SAVE ) +GAME( 1995, hotminda, hotmind, magicstk, hotminda, powerbal_state, magicstk, ROT0, "Playmark", "Hot Mind (adjustable prize)", MACHINE_SUPPORTS_SAVE ) +GAME( 1993, atombjt, bjtwin, atombjt, atombjt, powerbal_state, 0, ROT270, "bootleg (Kyon K.)", "Atom (bootleg of Bombjack Twin)", MACHINE_NO_COCKTAIL | MACHINE_IMPERFECT_SOUND | MACHINE_IMPERFECT_GRAPHICS | MACHINE_NOT_WORKING ) // some non-trivial mods to the gfx and sound hw wrt nmk16 hw original diff --git a/src/mame/includes/nmk16.h b/src/mame/includes/nmk16.h index 17437a6391f..3c1f0b02fc2 100644 --- a/src/mame/includes/nmk16.h +++ b/src/mame/includes/nmk16.h @@ -110,7 +110,6 @@ public: DECLARE_WRITE16_MEMBER(bioship_bank_w); DECLARE_WRITE8_MEMBER(spec2k_oki1_banking_w); DECLARE_WRITE8_MEMBER(twinactn_oki_bank_w); - DECLARE_READ16_MEMBER(atombjt_unkr_r) {return 0x0000;} DECLARE_WRITE16_MEMBER(nmk16_x0016_w); DECLARE_WRITE16_MEMBER(nmk16_bioship_x0016_w); DECLARE_DRIVER_INIT(nmk); diff --git a/src/mame/mame.lst b/src/mame/mame.lst index c9a2d55af3e..e321d88874b 100644 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -29957,7 +29957,6 @@ acrobatm // UPL-91073 (c) 1991 UPL + Taito license airattck // (c) 1996 Comad airattcka // (c) 1996 Comad arcadian // (c) 1994 NMK -atombjt // bootleg bigbang // UPL-93091 (c) 1993 NMK bioship // UPL-90062 (c) 1990 UPL + American Sammy license bjtwin // UPL-93087 (c) 1993 NMK @@ -32037,6 +32036,7 @@ potgoldu // (c) 200? U.S. Games potgoldu580 // (c) 200? U.S. Games @source:powerbal.cpp +atombjt // bootleg hotminda // (c) 1995 magicstk // (c) 1995 powerbal // (c) 1994 -- cgit v1.2.3