Moved Code Magik to lependu.cpp driver.

This commit is contained in:
Roberto Fresca 2025-01-12 01:54:58 +01:00
parent 69f22c2dd9
commit 8229c02491
4 changed files with 48 additions and 71 deletions

View File

@ -30711,7 +30711,6 @@ bsuertev // 1991, Unknown
caspoker // 1988, PM / Beck Elektronik.
caspokera // 1987, PM / Beck Elektronik.
caspokerb // 1986, PM / Beck Elektronik.
codemagik // (c) 198? Voyageur de L'Espace Inc.
falcnwld // 1991, TVG
falcnwlda // (c) 1990, Video Klein
falcnwldb // (c) 1990, Video Klein
@ -31098,6 +31097,7 @@ awetoss // Lazer-Tron Awesome Toss 'Em
ribrac // Lazer-Tron Ribbit Racin
@source:misc/lependu.cpp
codemagik // (c) 198? Voyageur de L'Espace Inc.
lependu // 198? Avenir Amusement Inc.
@source:misc/limenko.cpp

View File

@ -1060,7 +1060,6 @@ public:
void lespendu(machine_config &config);
void icproul(machine_config &config);
void glfever(machine_config &config);
void codemagik(machine_config &config);
void init_vkdlswwh();
void init_icp1db();
@ -1157,7 +1156,6 @@ private:
void icp_ext_map(address_map &map) ATTR_COLD;
void lespendu_map(address_map &map) ATTR_COLD;
void glfever_map(address_map &map) ATTR_COLD;
void codemagik_map(address_map &map) ATTR_COLD;
required_shared_ptr<uint8_t> m_videoram;
required_shared_ptr<uint8_t> m_colorram;
@ -1940,19 +1938,6 @@ void goldnpkr_state::glfever_map(address_map &map)
map(0xf000, 0xffff).rom(); // extended rom space
}
void goldnpkr_state::codemagik_map(address_map &map)
{
map.global_mask(0x7fff);
map(0x0000, 0x07ff).ram().share("nvram"); // battery backed RAM
map(0x0800, 0x0bff).ram().w(FUNC(goldnpkr_state::goldnpkr_videoram_w)).share("videoram");
map(0x0c00, 0x0fff).ram().w(FUNC(goldnpkr_state::goldnpkr_colorram_w)).share("colorram");
map(0x10b0, 0x10b0).w("crtc", FUNC(mc6845_device::address_w));
map(0x10b1, 0x10b1).rw("crtc", FUNC(mc6845_device::register_r), FUNC(mc6845_device::register_w));
map(0x10f4, 0x10f7).rw("pia0", FUNC(pia6821_device::read), FUNC(pia6821_device::write));
map(0x10f8, 0x10fb).rw("pia1", FUNC(pia6821_device::read), FUNC(pia6821_device::write));
map(0x4000, 0x7fff).rom(); //
}
void blitz_state::megadpkr_map(address_map &map)
{
@ -5261,21 +5246,6 @@ void goldnpkr_state::glfever(machine_config &config)
DISCRETE(config, m_discrete, goldnpkr_discrete).add_route(ALL_OUTPUTS, "mono", 1.0);
}
void goldnpkr_state::codemagik(machine_config &config)
{
goldnpkr_base(config);
// basic machine hardware
m_maincpu->set_addrmap(AS_PROGRAM, &goldnpkr_state::codemagik_map);
m_pia[0]->readpa_handler().set(FUNC(goldnpkr_state::pottnpkr_mux_port_r));
m_pia[0]->writepa_handler().set(FUNC(goldnpkr_state::mux_port_w));
// sound hardware
SPEAKER(config, "mono").front_center();
DISCRETE(config, m_discrete, pottnpkr_discrete).add_route(ALL_OUTPUTS, "mono", 1.0);
}
void blitz_state::megadpkr(machine_config &config)
{
@ -12625,42 +12595,6 @@ ROM_START( icproul )
ROM_LOAD( "n82s129an.bin", 0x0000, 0x0100, CRC(1a30bdd8) SHA1(d0a020e9604e8e0920a4500e02770db6c639bace) )
ROM_END
/*
Code Magik
Voyageur de L'Espace Inc.
Obscure vintage game.
Using IRQ instead of NMI.
VideoRAM: 0x800-0xbff
ColorRAM: 0xc00-0xfff
CRTC addr: 0x10b0-0x10b0
CRTC data: 0x10b1-0x10b1
PIA0 offs: 0x10f4-0x10f7
PIA1 offs: 0x10f8-0x10fb
*/
ROM_START( codemagik )
ROM_REGION( 0x10000, "maincpu", 0 )
ROM_LOAD( "2764.11a", 0x4000, 0x2000, CRC(61a6ffef) SHA1(d7f0f1b415b14d9919f9ac3b8a1d74f3e14ccc2d) )
ROM_LOAD( "2764.10a", 0x6000, 0x2000, CRC(4aac24d5) SHA1(06c89052d0f6f9d435ff88be62706595fe716791) )
ROM_REGION( 0x6000, "gfx1", 0 ) //
ROM_FILL( 0x0000, 0x4000, 0x0000 ) // filling the R-G bitplanes
ROM_LOAD( "1y_2764.4a", 0x4000, 0x2000, CRC(ae0e37f8) SHA1(2e3404c55b92a7f9ec72d7b96bbea95ee028026c) ) // char ROM
ROM_REGION( 0x3000, "gfx2", 0 ) //
ROM_LOAD( "3y_2732.1a", 0x0000, 0x1000, CRC(ea868221) SHA1(fcf9a840537feb28c9fb65b58b9a41b2412aa4ef) ) // cards deck gfx, bitplane1
ROM_LOAD( "2y_2732.3a", 0x1000, 0x1000, CRC(6d1da4bb) SHA1(dc8c70faa301e2f7e9089d38e0ef618e8352e569) ) // cards deck gfx, bitplane2
ROM_COPY( "gfx1", 0x4800, 0x2000, 0x0800 ) // cards deck gfx, bitplane3.
ROM_COPY( "gfx1", 0x5800, 0x2800, 0x0800 ) // cards deck alt gfx, bitplane3.
ROM_REGION( 0x0100, "proms", 0 )
ROM_LOAD( "clr.bin", 0x0000, 0x0100, CRC(7f31066b) SHA1(15420780ec6b2870fc4539ec3afe4f0c58eedf12) )
ROM_END
/*********************************************
* Driver Init *
@ -13372,7 +13306,6 @@ GAMEL( 198?, lespenduj, 0, lespendu, lespendu, goldnpkr_state, init_lespe
GAME( 198?, icproul, 0, icproul, icproul, goldnpkr_state, empty_init, ROT0, "<unknown>", "Roulette (ICP-1 PCB)", 0 ) // password protected
GAME( 198?, codemagik, 0, codemagik, goldnpkr, goldnpkr_state, empty_init, ROT0, "Voyageur de L'Espace Inc.", "Code Magik", MACHINE_NOT_WORKING )
/*************************************** SETS W/IRQ0 ***************************************/

View File

@ -587,6 +587,7 @@ ROM_START( lependu )
ROM_REGION( 0x08000, "data1", 0 ) // banked data
ROM_LOAD( "fra_04.12a", 0x0000, 0x8000, CRC(60b9a387) SHA1(b455f7e955869308dcc5709db34a478f08dc69bb) )
ROM_REGION( 0x08000, "data2", 0 ) // banked data
ROM_LOAD( "fra_05.14a", 0x0000, 0x8000, CRC(5834b8e3) SHA1(f4377b54761ae934ff2c09c2808424e2b4a44898) )
@ -605,6 +606,48 @@ ROM_START( lependu )
ROM_LOAD( "mini.5d", 0x0000, 0x0100, CRC(7f31066b) SHA1(15420780ec6b2870fc4539ec3afe4f0c58eedf12) )
ROM_END
/*
Code Magik
Voyageur de L'Espace Inc.
Obscure vintage game.
Using IRQ instead of NMI.
VideoRAM: 0x800-0xbff
ColorRAM: 0xc00-0xfff
CRTC addr: 0x10b0-0x10b0
CRTC data: 0x10b1-0x10b1
PIA0 offs: 0x10f4-0x10f7
PIA1 offs: 0x10f8-0x10fb
*/
ROM_START( codemagik )
ROM_REGION( 0x10000, "maincpu", 0 )
ROM_LOAD( "2764.11a", 0xc000, 0x2000, CRC(61a6ffef) SHA1(d7f0f1b415b14d9919f9ac3b8a1d74f3e14ccc2d) )
ROM_LOAD( "2764.10a", 0xe000, 0x2000, CRC(4aac24d5) SHA1(06c89052d0f6f9d435ff88be62706595fe716791) )
ROM_REGION( 0x08000, "data1", 0 ) // banked data
ROM_FILL( 0x0000, 0x8000, 0x0000 ) // filling the bank
ROM_REGION( 0x08000, "data2", 0 ) // banked data
ROM_FILL( 0x0000, 0x8000, 0x0000 ) // filling the bank
ROM_REGION( 0x6000, "gfx1", 0 )
ROM_FILL( 0x0000, 0x4000, 0x0000 ) // filling the R-G bitplanes
ROM_LOAD( "1y_2764.4a", 0x4000, 0x2000, CRC(41b83c2d) SHA1(b46a43636c577c4a3620c69ef874f11aa9d48473) ) // chars / multicolor tiles, bitplane 3
ROM_REGION( 0x3000, "gfx2", 0 )
ROM_LOAD( "3y_2732.1a", 0x0000, 0x1000, CRC(ea868221) SHA1(fcf9a840537feb28c9fb65b58b9a41b2412aa4ef) ) // cards deck and alt gfx, bitplane1
ROM_LOAD( "2y_2732.3a", 0x1000, 0x1000, CRC(6d1da4bb) SHA1(dc8c70faa301e2f7e9089d38e0ef618e8352e569) ) // cards deck gfx, bitplane2
ROM_COPY( "gfx1", 0x4800, 0x2000, 0x0800 ) // cards deck gfx, bitplane3.
ROM_COPY( "gfx1", 0x5800, 0x2800, 0x0800 ) // cards deck alt gfx, bitplane3.
ROM_REGION( 0x0100, "proms", 0 )
ROM_LOAD( "dex.5d", 0x0000, 0x0100, CRC(7f31066b) SHA1(15420780ec6b2870fc4539ec3afe4f0c58eedf12) )
ROM_END
/*********************************************
* Driver Init *
@ -636,5 +679,6 @@ void lependu_state::init_lependu()
* Game Drivers *
*********************************************/
// YEAR NAME PARENT MACHINE INPUT STATE INIT ROT COMPANY FULLNAME FLAGS LAYOUT
GAMEL( 198?, lependu, 0, lependu, lependu, lependu_state, init_lependu, ROT0, "Avenir Amusement Inc.", "Le Pendu (Bilingue, Version 04)", 0, layout_lependu )
// YEAR NAME PARENT MACHINE INPUT STATE INIT ROT COMPANY FULLNAME FLAGS LAYOUT
GAMEL( 198?, lependu, 0, lependu, lependu, lependu_state, init_lependu, ROT0, "Avenir Amusement Inc.", "Le Pendu (Bilingue, Version 04)", 0, layout_lependu )
GAMEL( 198?, codemagik, 0, lependu, lependu, lependu_state, empty_init, ROT0, "Voyageur de L'Espace Inc.", "Code Magik", MACHINE_NOT_WORKING, layout_lependu )

View File

@ -70,7 +70,7 @@
- U1 : 40-pin IC YES CPU MOTOROLA M6809EP 8-bit microprocessor.
- U2 : 28-pin IC YES ROM M27128A (or M27512FI) NMOS 128K 16K x 8 UV EPROM (or 64K x 8).
- U3 : 28-pin IC YES ROM M27128A (or M27512FI) NMOS 128K 16K x 8 UV EPROM (or 64K x 8).
- U4 : 40-pin IC YES I/O EF6821P PIA: Peripheral Interface Adapter.
- U4 : 40-pin IC YES I/O MC6821P PIA: Peripheral Interface Adapter.
- U5 : 16-pin IC YES TTL 74HC157 Quad 2 Channel Multiplexer.
- U6 : 16-pin IC YES TTL 74HC157 Quad 2 Channel Multiplexer.
- U7 : 16-pin IC YES TTL 74HC157 Quad 2 Channel Multiplexer.