Skip to content

Commit

Permalink
Moved Code Magik to lependu.cpp driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoFresca committed Jan 12, 2025
1 parent 69f22c2 commit 8229c02
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 71 deletions.
2 changes: 1 addition & 1 deletion src/mame/mame.lst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
67 changes: 0 additions & 67 deletions src/mame/misc/goldnpkr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,6 @@ class goldnpkr_state : public driver_device
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();
Expand Down Expand Up @@ -1157,7 +1156,6 @@ class goldnpkr_state : public driver_device
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;
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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 *
Expand Down Expand Up @@ -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 ***************************************/

Expand Down
48 changes: 46 additions & 2 deletions src/mame/misc/lependu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) )

Expand All @@ -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 *
Expand Down Expand Up @@ -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 )
2 changes: 1 addition & 1 deletion src/mame/misc/truco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8229c02

Please sign in to comment.