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
|
// license:BSD-3-Clause
// copyright-holders:Sterophonick
/***************************************************************************
Skeleton driver for Gigatron TTL Microcomputer
Driver by Sterophonick
***************************************************************************/
#include "emu.h"
#include "cpu/gigatron/gigatron.h"
#include "machine/nvram.h"
#include "speaker.h"
#define MAIN_CLOCK 6250000
class gigatron_state : public driver_device
{
public:
gigatron_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag)
, m_maincpu(*this, "maincpu")
{
}
void gigatron(machine_config &config);
private:
void prog_map(address_map &map);
void data_map(address_map &map);
required_device<cpu_device> m_maincpu;
};
void gigatron_state::prog_map(address_map &map)
{
map(0x0000, 0x3fff).rom().region("maincpu", 0);
}
void gigatron_state::data_map(address_map &map)
{
}
static INPUT_PORTS_START(gigatron)
INPUT_PORTS_END
void gigatron_state::gigatron(machine_config &config)
{
GTRON(config, m_maincpu, MAIN_CLOCK);
m_maincpu->set_addrmap(AS_PROGRAM, &gigatron_state::prog_map);
m_maincpu->set_addrmap(AS_DATA, &gigatron_state::data_map);
SPEAKER(config, "mono").front_center();
}
ROM_START( gigatron )
ROM_REGION( 0x20000, "maincpu", 0 )
ROM_LOAD( "gigatron.rom", 0x0000, 0x20000, CRC(78995109) SHA1(2395fc48e64099836111f5aeca39ddbf4650ea4e) )
ROM_END
GAME(199?, gigatron, 0, gigatron, gigatron, gigatron_state, empty_init, ROT0, "Marcel van Kervinck", "Gigatron TTL Microcomputer", MACHINE_IS_SKELETON_MECHANICAL)
|