|
| 1 | +// license:BSD-3-Clause |
| 2 | +// copyright-holders:David Haywood |
| 3 | + |
| 4 | +// TV Word Processor, with printer |
| 5 | + |
| 6 | +#include "emu.h" |
| 7 | +#include "cpu/nec/v25.h" |
| 8 | + |
| 9 | +namespace { |
| 10 | + |
| 11 | +class tvdear_state : public driver_device |
| 12 | +{ |
| 13 | +public: |
| 14 | + tvdear_state(const machine_config &mconfig, device_type type, const char *tag) |
| 15 | + : driver_device(mconfig, type, tag) |
| 16 | + , m_maincpu(*this, "systemcpu") |
| 17 | + { |
| 18 | + } |
| 19 | + |
| 20 | + void tvdear(machine_config &config); |
| 21 | + |
| 22 | +private: |
| 23 | + void mem_map(address_map &map); |
| 24 | + |
| 25 | + required_device<v25_device> m_maincpu; |
| 26 | +}; |
| 27 | + |
| 28 | + |
| 29 | +void tvdear_state::mem_map(address_map &map) |
| 30 | +{ |
| 31 | + map(0xe0000, 0xfffff).rom().region("maincpu", 0xe0000); // wrong |
| 32 | +} |
| 33 | + |
| 34 | +static INPUT_PORTS_START(tvdear) |
| 35 | +INPUT_PORTS_END |
| 36 | + |
| 37 | +void tvdear_state::tvdear(machine_config &config) |
| 38 | +{ |
| 39 | + V25(config, m_maincpu, 16000000); |
| 40 | + m_maincpu->set_addrmap(AS_PROGRAM, &tvdear_state::mem_map); |
| 41 | +} |
| 42 | + |
| 43 | +ROM_START(tvdear) |
| 44 | + ROM_REGION(0x200000, "maincpu", 0) |
| 45 | + ROM_LOAD("d23c160000.u5", 0x00000, 0x200000, CRC(41ec9890) SHA1(20cfdfec7eeb39a9ce971f23fdc97b42a5d68301) ) |
| 46 | + |
| 47 | + ROM_REGION(0x20000, "cart", 0) // TODO: move this to a software list |
| 48 | + ROM_LOAD("lc371100.u15", 0x00000, 0x20000, CRC(f70696d1) SHA1(21da45720a48e18fd6173f2482bd7db4988d1548) ) |
| 49 | +ROM_END |
| 50 | + |
| 51 | +} // anonymous namespace |
| 52 | + |
| 53 | +CONS( 1996, tvdear, 0, 0, tvdear, tvdear, tvdear_state, empty_init, "Takara", "TV Dear", MACHINE_IS_SKELETON ) |
0 commit comments