New working clones

------------------
Counter Run (bootleg set 3) [trol]
Mortal Kombat (Victor bootleg of rev 3.0 08/31/92) [Funny_Dyzieks]
This commit is contained in:
Ivan Vangelista 2023-07-13 22:10:50 +02:00
parent 8dc4a313fa
commit 94c40829f0
7 changed files with 737 additions and 606 deletions

View File

@ -27254,6 +27254,7 @@ mazebl // bootleg
mkla1 // (c) 1992 Midway
mkla2 // (c) 1992 Midway
mkla3 // (c) 1992 Midway
mkla3bl // bootleg
mkla4 // (c) 1992 Midway
mknifty // hack
mknifty666 // hack
@ -29520,11 +29521,10 @@ fortecrd // (c) 1994, Fortex Ltd.
fortecrde // (c) 1994, Fortex Ltd.
@source:misc/freekick.cpp
omega // (c) 1986 Nihon System
omegaa // (c) 1986 Nihon System
countrun // (c) 1988 Nihon System (+ optional Sega) NS6201-A 1988.3
countrunb // (c) 1988 bootleg
countrunb2 // (c) 1988 bootleg
countrunb3 // (c) 1988 bootleg
freekick // (c) 1988 Nihon System licensed to Merit (+ optional Sega) NS6201-A 1987.10
freekicka // (c) 1988 Nihon System (+ optional Sega) NS6201-A 1987.9
freekickb1 // (c) 1987 bootleg
@ -29535,6 +29535,8 @@ gigasb // (c) 1986 bootleg
gigasm2 // (c) 1986 Sega
gigasm2b // (c) 1986 bootleg
oigas // (c) 1986 bootleg
omega // (c) 1986 Nihon System
omegaa // (c) 1986 Nihon System
pbillrd // (c) 1987 Nihon System
pbillrdbl // (c) 1987 bootleg
pbillrds // (c) 1987 Nihon System (Sega license?)

View File

@ -3232,6 +3232,34 @@ ROM_START( mkyawdim4 )
ROM_END
ROM_START( mkla3bl ) // strange bootleg with peculiarly arranged GFX ROMs.
ROM_REGION( 0x50000, "adpcm:cpu", 0 )
ROM_LOAD ( "m1-a003", 0x10000, 0x40000, CRC(c615844c) SHA1(5732f9053a5f73b0cc3b0166d7dc4430829d5bc7) )
ROM_REGION( 0x100000, "adpcm:oki", 0 )
ROM_LOAD ( "m1-a001", 0x00000, 0x40000, CRC(258bd7f9) SHA1(463890b23f17350fb9b8a85897b0777c45bc2d54) )
ROM_RELOAD( 0x40000, 0x40000 )
ROM_LOAD ( "m1-a002", 0x80000, 0x40000, CRC(7b7ec3b6) SHA1(6eec1b90d4a4855f34a7ebfbf93f3358d5627db4) )
ROM_RELOAD( 0xc0000, 0x40000 )
ROM_REGION16_LE( 0x100000, "user1", 0 )
ROM_LOAD16_BYTE( "ax422-m1-5", 0x00000, 0x80000, CRC(2ce843c5) SHA1(d48efcecd6528414249f3884edc32e0dafa9677f) )
ROM_LOAD16_BYTE( "ax422-m1-4", 0x00001, 0x80000, CRC(49a46e10) SHA1(c63c00531b29c01ee864acc141b1713507d25c69) )
/*
ROM_LOAD ( "b-1.bin", 0x000000, 0x100000, CRC(f41e61c6) SHA1(7dad38839d5c9aa0cfa7b2f7199f14e0f2c4494b) ) // 6x 8Mbit masks
ROM_LOAD ( "b-2.bin", 0x100000, 0x100000, CRC(8052740b) SHA1(f1b7fd536966d9d0ce690cdec635069c340d678e) )
ROM_LOAD ( "a-1.bin", 0x200000, 0x100000, CRC(7da3cb93) SHA1(23b9053b3241b69988f7f2e6a9d1353dac4fc8ab) )
ROM_LOAD ( "a-2.bin", 0x300000, 0x100000, CRC(1eedb0f8) SHA1(27c056c469c17bb176325b91cf92296c89681ac6) )
*/
ROM_REGION( 0x800000, "gfx1", 0 )
ROM_LOAD ( "pw3412-m1-a", 0x000000, 0x200000, CRC(87776f14) SHA1(83533049545b175fa1fc8e021056466f6a37b2a5) ) // even == a-2.bin, odd == b-2.bin
ROM_LOAD ( "pw3412-m1-b", 0x200000, 0x200000, CRC(30724e04) SHA1(a5f354b82fd5f73535ba77ed8be473f862528682) ) // even == a-1.bin, odd == b-1.bin
ROM_LOAD ( "pw3412-m1-c", 0x400000, 0x200000, CRC(96612f94) SHA1(4cc80962bd04992ce95857650514c6f40f16fdad) ) // 1st half == c-1.bin, 2nd half == c-2.bin
ROM_END
ROM_START( term2 )
ROM_REGION( 0x50000, "adpcm:cpu", 0 ) /* sound CPU */
ROM_LOAD ( "sl1_terminator_2_u3_sound_rom.u3", 0x10000, 0x20000, CRC(73c3f5c4) SHA1(978dd974590e77294dbe9a647aebd3d24af6397f) )
@ -3594,6 +3622,7 @@ GAME( 1992, mkyawdim, mk, mkyawdim, mkyawdim, midyunit_st
GAME( 1992, mkyawdim2, mk, mkyawdim, mkyawdim, midyunit_state, init_mkyawdim2, ROT0, "bootleg (Yawdim)", "Mortal Kombat (Yawdim bootleg, set 2)", MACHINE_SUPPORTS_SAVE ) // some sound effects are missing on real pcb
GAME( 1992, mkyawdim3, mk, mkyawdim, mkyawdim, midyunit_state, init_mkyawdim, ROT0, "bootleg (Yawdim)", "Mortal Kombat (Yawdim bootleg, set 3)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_SOUND) // are some sound effects missing/wrong?
GAME( 1992, mkyawdim4, mk, mkyawdim, mkyawdim, midyunit_state, init_mkyawdim, ROT0, "bootleg (Yawdim)", "Mortal Kombat (Yawdim bootleg, set 4)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_SOUND) // are some sound effects missing/wrong?
GAME( 1992, mkla3bl, mk, yunit_adpcm_6bit_fast, mkla4, midyunit_state, init_mkla3bl, ROT0, "bootleg (Victor)", "Mortal Kombat (Victor bootleg of rev 3.0 08/31/92)", MACHINE_SUPPORTS_SAVE )
GAME( 1992, totcarn, 0, yunit_adpcm_6bit_fast, totcarn, midyunit_state, init_totcarn, ROT0, "Midway", "Total Carnage (rev LA1 03/10/92)", MACHINE_SUPPORTS_SAVE )
GAME( 1992, totcarnp2, totcarn, yunit_adpcm_6bit_fast, totcarn, midyunit_state, init_totcarn, ROT0, "Midway", "Total Carnage (prototype, proto v 2.0 02/10/92)", MACHINE_SUPPORTS_SAVE )

View File

@ -66,6 +66,7 @@ public:
void init_mkyawdim2();
void init_shimpact();
void init_hiimpact();
void init_mkla3bl();
void init_mkyturbo();
void init_term2la2();

View File

@ -490,6 +490,30 @@ void midyunit_state::init_mkyturbo()
init_mkyunit();
}
void midyunit_state::init_mkla3bl()
{
// rearrange GFX so the driver can deal with them
uint8_t *gfxrom = memregion("gfx1")->base();
std::vector<uint8_t> buffer(0x400000);
memcpy(&buffer[0], gfxrom, 0x400000);
for (int i = 0x000000; i < 0x100000; i++)
gfxrom[i] = buffer[0x200000 | ((i & 0xfffff) * 2 + 1)];
for (int i = 0x100000; i < 0x200000; i++)
gfxrom[i] = buffer[(i & 0xfffff) * 2 + 1];
for (int i = 0x200000; i < 0x300000; i++)
gfxrom[i] = buffer[0x200000 | ((i & 0xfffff) * 2)];
for (int i = 0x300000; i < 0x400000; i++)
gfxrom[i] = buffer[(i & 0xfffff) * 2];
// 0x400000 - 0x5fffff range is already ok
init_mkyunit();
}
/********************** Terminator 2 **********************/
void midyunit_state::term2_init_common(write16s_delegate hack_w)

File diff suppressed because it is too large Load Diff

View File

@ -1,102 +0,0 @@
// license:BSD-3-Clause
// copyright-holders:Tomasz Slanina,David Haywood
#include "machine/74259.h"
#include "emupal.h"
#include "tilemap.h"
class freekick_state : public driver_device
{
public:
freekick_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_videoram(*this, "videoram"),
m_spriteram(*this, "spriteram"),
m_maincpu(*this, "maincpu"),
m_gfxdecode(*this, "gfxdecode"),
m_palette(*this, "palette"),
m_outlatch(*this, "outlatch"),
m_bank1(*this, "bank1"),
m_bank1d(*this, "bank1d") { }
void base(machine_config &config);
void oigas(machine_config &config);
void pbillrd(machine_config &config);
void pbillrdbl(machine_config &config);
void gigas(machine_config &config);
void gigasm(machine_config &config);
void pbillrdm(machine_config &config);
void omega(machine_config &config);
void freekick(machine_config &config);
void init_gigas();
void init_gigasb();
void init_pbillrdbl();
void init_pbillrds();
private:
/* memory pointers */
required_shared_ptr<uint8_t> m_videoram;
required_shared_ptr<uint8_t> m_spriteram;
/* video-related */
tilemap_t *m_freek_tilemap = nullptr;
/* misc */
int m_inval = 0;
int m_outval = 0;
int m_cnt = 0; // used by oigas
int m_romaddr = 0;
int m_spinner = 0;
int m_nmi_en = 0;
int m_ff_data = 0;
std::unique_ptr<uint8_t[]> m_decrypted_opcodes;
void flipscreen_x_w(int state);
void flipscreen_y_w(int state);
void flipscreen_w(int state);
void coin1_w(int state);
void coin2_w(int state);
void spinner_select_w(int state);
void gigas_spinner_select_w(uint8_t data);
uint8_t spinner_r();
void pbillrd_bankswitch_w(uint8_t data);
void nmi_enable_w(int state);
void oigas_5_w(uint8_t data);
uint8_t oigas_3_r();
uint8_t oigas_2_r();
uint8_t freekick_ff_r();
void freekick_ff_w(uint8_t data);
void freek_videoram_w(offs_t offset, uint8_t data);
void snd_rom_addr_l_w(uint8_t data);
void snd_rom_addr_h_w(uint8_t data);
uint8_t snd_rom_r();
TILE_GET_INFO_MEMBER(get_freek_tile_info);
virtual void video_start() override;
DECLARE_MACHINE_START(pbillrd);
DECLARE_MACHINE_RESET(freekick);
DECLARE_MACHINE_START(freekick);
DECLARE_MACHINE_START(oigas);
DECLARE_MACHINE_RESET(oigas);
uint32_t screen_update_pbillrd(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
uint32_t screen_update_freekick(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
uint32_t screen_update_gigas(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void vblank_irq(int state);
void gigas_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
void pbillrd_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
void freekick_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette;
required_device<ls259_device> m_outlatch;
optional_memory_bank m_bank1, m_bank1d;
void decrypted_opcodes_map(address_map &map);
void freekick_io_map(address_map &map);
void freekick_map(address_map &map);
void gigas_io_map(address_map &map);
void gigas_map(address_map &map);
void oigas_io_map(address_map &map);
void omega_io_map(address_map &map);
void omega_map(address_map &map);
void pbillrd_map(address_map &map);
void pbillrdbl_map(address_map &map);
};

View File

@ -1,152 +0,0 @@
// license:BSD-3-Clause
// copyright-holders:Tomasz Slanina,David Haywood
/* Free Kick Video Hardware */
#include "emu.h"
#include "freekick.h"
TILE_GET_INFO_MEMBER(freekick_state::get_freek_tile_info)
{
int tileno, palno;
tileno = m_videoram[tile_index] + ((m_videoram[tile_index + 0x400] & 0xe0) << 3);
palno = m_videoram[tile_index + 0x400] & 0x1f;
tileinfo.set(0, tileno, palno, 0);
}
void freekick_state::video_start()
{
m_freek_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(freekick_state::get_freek_tile_info)), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
}
void freekick_state::freek_videoram_w(offs_t offset, uint8_t data)
{
m_videoram[offset] = data;
m_freek_tilemap->mark_tile_dirty(offset & 0x3ff);
}
void freekick_state::gigas_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
{
int offs;
for (offs = 0; offs < m_spriteram.bytes(); offs += 4)
{
int xpos = m_spriteram[offs + 3];
int ypos = m_spriteram[offs + 2];
int code = m_spriteram[offs + 0] | ((m_spriteram[offs + 1] & 0x20) << 3);
int flipx = 0;
int flipy = 0;
int color = m_spriteram[offs + 1] & 0x1f;
if (flip_screen_x())
{
xpos = 240 - xpos;
flipx = !flipx;
}
if (flip_screen_y())
{
ypos = 256 - ypos;
flipy = !flipy;
}
m_gfxdecode->gfx(1)->transpen(bitmap,cliprect,
code,
color,
flipx,flipy,
xpos,240-ypos,0);
}
}
void freekick_state::pbillrd_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
{
int offs;
for (offs = 0; offs < m_spriteram.bytes(); offs += 4)
{
int xpos = m_spriteram[offs + 3];
int ypos = m_spriteram[offs + 2];
int code = m_spriteram[offs + 0];
int flipx = 0;//m_spriteram[offs + 0] & 0x80; //?? unused ?
int flipy = 0;//m_spriteram[offs + 0] & 0x40;
int color = m_spriteram[offs + 1] & 0x0f;
if (flip_screen_x())
{
xpos = 240 - xpos;
flipx = !flipx;
}
if (flip_screen_y())
{
ypos = 256 - ypos;
flipy = !flipy;
}
m_gfxdecode->gfx(1)->transpen(bitmap,cliprect,
code,
color,
flipx,flipy,
xpos,240-ypos,0);
}
}
void freekick_state::freekick_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
{
int offs;
for (offs = 0; offs < m_spriteram.bytes(); offs += 4)
{
int xpos = m_spriteram[offs + 3];
int ypos = m_spriteram[offs + 0];
int code = m_spriteram[offs + 1] + ((m_spriteram[offs + 2] & 0x20) << 3);
int flipx = m_spriteram[offs + 2] & 0x80; //?? unused ?
int flipy = m_spriteram[offs + 2] & 0x40;
int color = m_spriteram[offs + 2] & 0x1f;
if (flip_screen_x())
{
xpos = 240 - xpos;
flipx = !flipx;
}
if (flip_screen_y())
{
ypos = 256 - ypos;
flipy = !flipy;
}
m_gfxdecode->gfx(1)->transpen(bitmap,cliprect,
code,
color,
flipx,flipy,
xpos,248-ypos,0);
}
}
uint32_t freekick_state::screen_update_gigas(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
m_freek_tilemap->draw(screen, bitmap, cliprect, 0, 0);
gigas_draw_sprites(bitmap, cliprect);
return 0;
}
uint32_t freekick_state::screen_update_pbillrd(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
m_freek_tilemap->draw(screen, bitmap, cliprect, 0, 0);
pbillrd_draw_sprites(bitmap, cliprect);
return 0;
}
uint32_t freekick_state::screen_update_freekick(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
m_freek_tilemap->draw(screen, bitmap, cliprect, 0, 0);
freekick_draw_sprites(bitmap, cliprect);
return 0;
}