1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
// license:BSD-3-Clause
// copyright-holders:superctr
/*
Yamaha TG100 AWM Tone Generator
Skeleton written by superctr
Roms dumped by vampirefrog
Service manual scanned by bmos
CPU: Hitachi HD6435208A00P (H8/520)
- 20MHz clock
- Mode bits 0,1 high, 2 low
- 32kb RAM (1x HM65256 PSRAM)
Sound generator: Yamaha YMW258-F (GEW8, identical to MultiPCM?)
- 9.4MHz clock
- 28 voices polyphony
- 2MB sample ROM containing 140 12-bit PCM samples
Effect DSP: Yamaha YM3413
- clocked by sound generator
- Effect memory: 64kb (2x HM65256 PSRAM)
LCD:
- 1x16 characters
Other ICs:
HG62E11R54FS (XK462A00) Gate array (LCD control, glue logic)
*/
#include "emu.h"
#include "cpu/h8/h83002.h"
#include "sound/multipcm.h"
#include "screen.h"
#include "speaker.h"
class tg100_state : public driver_device
{
public:
tg100_state(const machine_config &mconfig, device_type type, const char *tag) :
driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_ymw258(*this, "ymw258")
{ }
required_device<cpu_device> m_maincpu;
required_device<multipcm_device> m_ymw258;
void tg100(machine_config &config);
void tg100_io_map(address_map &map);
void tg100_map(address_map &map);
void ymw258_map(address_map &map);
};
/* all memory accesses are decoded by the gate array... */
void tg100_state::tg100_map(address_map &map)
{
map(0x00000000, 0x0007ffff).ram(); /* gate array stuff */
map(0x00080000, 0x0009ffff).rom().region("prgrom", 0x00000);
}
void tg100_state::tg100_io_map(address_map &map)
{
// ADDRESS_MAP_GLOBAL_MASK(0xff)
}
static INPUT_PORTS_START( tg100 )
INPUT_PORTS_END
void tg100_state::ymw258_map(address_map &map)
{
map(0x000000, 0x1fffff).rom();
}
MACHINE_CONFIG_START(tg100_state::tg100)
/* basic machine hardware */
MCFG_DEVICE_ADD("maincpu", H83002, XTAL(20'000'000)) /* TODO: correct CPU type (H8/520) */
MCFG_DEVICE_PROGRAM_MAP( tg100_map )
MCFG_DEVICE_IO_MAP( tg100_io_map )
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
MCFG_DEVICE_ADD("ymw258", MULTIPCM, 9400000)
MCFG_DEVICE_ADDRESS_MAP(0, ymw258_map)
MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
MACHINE_CONFIG_END
ROM_START( tg100 )
ROM_REGION(0x20000, "prgrom", 0) // H8/520 memory bus is 8 bit actually
ROM_LOAD16_WORD_SWAP( "xk731c0.ic4", 0x00000, 0x20000, CRC(8fb6139c) SHA1(483103a2ffc63a90a2086c597baa2b2745c3a1c2) )
ROM_REGION(0x200000, "ymw258", 0)
ROM_LOAD( "xk992a0.ic6", 0x000000, 0x200000, CRC(01dc6954) SHA1(32ec77a46f4d005538c735f56ad48fa7243c63be) )
ROM_END
// YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS
CONS( 1991, tg100, 0, 0, tg100, tg100, tg100_state, empty_init, "Yamaha", "TG100", MACHINE_NOT_WORKING | MACHINE_NO_SOUND )
|