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
102
103
|
// license:BSD-3-Clause
// copyright-holders:hap
/*
TMS1000 family - TMS1000, TMS1070, TMS1040, TMS1200
*/
#ifndef MAME_CPU_TMS1000_TMS1000_H
#define MAME_CPU_TMS1000_TMS1000_H
#pragma once
#include "tms1k_base.h"
class tms1000_cpu_device : public tms1k_base_device
{
public:
tms1000_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
protected:
tms1000_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, u8 o_pins, u8 r_pins, u8 pc_bits, u8 byte_bits, u8 x_bits, int prgwidth, address_map_constructor program, int datawidth, address_map_constructor data);
// overrides
virtual void device_reset() override;
virtual void device_add_mconfig(machine_config &config) override;
virtual util::disasm_interface *create_disassembler() override;
};
class tms1070_cpu_device : public tms1000_cpu_device
{
public:
tms1070_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
};
class tms1040_cpu_device : public tms1000_cpu_device
{
public:
tms1040_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
};
class tms1200_cpu_device : public tms1000_cpu_device
{
public:
tms1200_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
};
class tms1700_cpu_device : public tms1000_cpu_device
{
public:
tms1700_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
};
class tms1730_cpu_device : public tms1000_cpu_device
{
public:
tms1730_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
};
class tms1000c_cpu_device : public tms1000_cpu_device
{
public:
tms1000c_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
protected:
// overrides
virtual void device_add_mconfig(machine_config &config) override;
virtual void op_br() override { op_br3(); } // 3-level stack
virtual void op_call() override { op_call3(); } // "
virtual void op_retn() override { op_retn3(); } // "
};
class mc141000_cpu_device : public tms1000_cpu_device
{
public:
mc141000_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
};
class mc141200_cpu_device : public tms1000_cpu_device
{
public:
mc141200_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
};
DECLARE_DEVICE_TYPE(TMS1000, tms1000_cpu_device)
DECLARE_DEVICE_TYPE(TMS1000C, tms1000c_cpu_device)
DECLARE_DEVICE_TYPE(TMS1070, tms1070_cpu_device)
DECLARE_DEVICE_TYPE(TMS1040, tms1040_cpu_device)
DECLARE_DEVICE_TYPE(TMS1200, tms1200_cpu_device)
DECLARE_DEVICE_TYPE(TMS1700, tms1700_cpu_device)
DECLARE_DEVICE_TYPE(TMS1730, tms1730_cpu_device)
DECLARE_DEVICE_TYPE(MC141000, mc141000_cpu_device)
DECLARE_DEVICE_TYPE(MC141200, mc141200_cpu_device)
#endif // MAME_CPU_TMS1000_TMS1000_H
|