summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/picno.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/picno.cpp')
-rw-r--r--src/mame/drivers/picno.cpp40
1 files changed, 19 insertions, 21 deletions
diff --git a/src/mame/drivers/picno.cpp b/src/mame/drivers/picno.cpp
index b789a83eceb..9e4e2cd9d61 100644
--- a/src/mame/drivers/picno.cpp
+++ b/src/mame/drivers/picno.cpp
@@ -24,7 +24,7 @@ Can't do anything until the internal ROM is dumped.
******************************************************************************************************************************/
#include "emu.h"
-#include "cpu/h8/h83002.h"
+#include "cpu/h8500/h8532.h"
#include "bus/generic/slot.h"
#include "bus/generic/carts.h"
@@ -44,23 +44,17 @@ public:
void picno(machine_config &config);
private:
- void io_map(address_map &map);
void mem_map(address_map &map);
- required_device<cpu_device> m_maincpu;
+ required_device<h8532_device> m_maincpu;
};
void picno_state::mem_map(address_map &map)
{
- map(0x00000, 0x07fff).rom().region("roms", 0); // 32kb internal rom
- map(0x0fb80, 0x0ff7f).ram(); // internal ram
- map(0x0ff80, 0x0ffff); // internal controls
- map(0x10000, 0x8ffff).rom().region("roms", 0x8000); // guess
-}
-
-void picno_state::io_map(address_map &map)
-{
-// map.global_mask(0xff);
+ //map(0x00000, 0x07fff).rom().region("roms", 0); // 32kb internal rom
+ //map(0x0fb80, 0x0ff7f).ram(); // internal ram
+ //map(0x0ff80, 0x0ffff); // internal controls
+ map(0x10000, 0x8ffff).rom().region("roms", 0); // guess
}
static INPUT_PORTS_START( picno )
@@ -69,13 +63,13 @@ INPUT_PORTS_END
void picno_state::picno(machine_config &config)
{
/* basic machine hardware */
- H83002(config, m_maincpu, XTAL(20'000'000)); /* TODO: correct CPU type (H8/532), crystal is a guess, divided by 2 in the cpu */
+ HD6435328(config, m_maincpu, 20'000'000); // TODO: clock is a guess, divided by 2 in the cpu
m_maincpu->set_addrmap(AS_PROGRAM, &picno_state::mem_map);
- m_maincpu->set_addrmap(AS_IO, &picno_state::io_map);
- //MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") // no speaker in the unit, but there's a couple of sockets on the back
- //MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
- //MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
+ //SPEAKER(config, "lspeaker").front_left(); // no speaker in the unit, but there's a couple of sockets on the back
+ //SPEAKER(config, "rspeaker").front_right();
+ //sound.add_route(0, "lspeaker", 1.0);
+ //sound.add_route(1, "rspeaker", 1.0);
GENERIC_CARTSLOT(config, "cartslot", generic_linear_slot, "picno_cart");
@@ -83,15 +77,19 @@ void picno_state::picno(machine_config &config)
}
ROM_START( picno )
- ROM_REGION16_BE(0x88000, "roms", 0)
+ ROM_REGION(0x8000, "maincpu", ROMREGION_ERASE00)
ROM_LOAD( "hd6435328f10.u5", 0x00000, 0x08000, NO_DUMP ) // internal rom
- ROM_LOAD( "rx001-z8-v3j.u2", 0x08000, 0x80000, CRC(e3c8929d) SHA1(1716f09b0a594b3782d257330282d77b6ca6fa0d) ) //HN62334BP
+
+ ROM_REGION(0x80000, "roms", 0)
+ ROM_LOAD( "rx001-z8-v3j.u2", 0x00000, 0x80000, CRC(e3c8929d) SHA1(1716f09b0a594b3782d257330282d77b6ca6fa0d) ) //HN62334BP
ROM_END
ROM_START( picno2 )
- ROM_REGION16_BE(0x88000, "roms", 0)
+ ROM_REGION(0x8000, "maincpu", ROMREGION_ERASE00)
ROM_LOAD( "hd6435328f10.u5", 0x00000, 0x08000, NO_DUMP ) // internal rom
- ROM_LOAD( "rx001-z8-v4j.u2", 0x08000, 0x80000, CRC(ae89a9a5) SHA1(51ed458ffd151e19019beb23517263efce4be272) ) //HN62334BP
+
+ ROM_REGION(0x80000, "roms", 0)
+ ROM_LOAD( "rx001-z8-v4j.u2", 0x00000, 0x80000, CRC(ae89a9a5) SHA1(51ed458ffd151e19019beb23517263efce4be272) ) //HN62334BP
ROM_END
// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS