summaryrefslogtreecommitdiffstatshomepage
path: root/trunk/src/emu/cpu/tms0980/tms0980.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/emu/cpu/tms0980/tms0980.h')
-rw-r--r--trunk/src/emu/cpu/tms0980/tms0980.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/trunk/src/emu/cpu/tms0980/tms0980.h b/trunk/src/emu/cpu/tms0980/tms0980.h
new file mode 100644
index 00000000000..a0ac1547df2
--- /dev/null
+++ b/trunk/src/emu/cpu/tms0980/tms0980.h
@@ -0,0 +1,42 @@
+#ifndef _TMS0980_H_
+#define _TMS0980_H_
+
+
+/* Registers */
+enum {
+ TMS0980_PC=1, TMS0980_SR, TMS0980_PA, TMS0980_PB,
+ TMS0980_A, TMS0980_X, TMS0980_Y, TMS0980_STATUS
+};
+
+
+typedef struct _tms0980_config tms0980_config;
+struct _tms0980_config {
+ /* O-output PLA configuration */
+ struct {
+ UINT8 value;
+ UINT16 output;
+ } o_pla[20];
+ read8_device_func read_k;
+ write16_device_func write_o; /* tms1270 has 10 O-outputs */
+ write16_device_func write_r;
+};
+
+
+/* 9-bit family */
+DECLARE_LEGACY_CPU_DEVICE(TMS0980, tms0980);
+
+extern CPU_DISASSEMBLE( tms0980 );
+
+/* 8-bit family */
+DECLARE_LEGACY_CPU_DEVICE(TMS1000, tms1000);
+DECLARE_LEGACY_CPU_DEVICE(TMS1070, tms1070);
+DECLARE_LEGACY_CPU_DEVICE(TMS1100, tms1100);
+DECLARE_LEGACY_CPU_DEVICE(TMS1200, tms1200);
+DECLARE_LEGACY_CPU_DEVICE(TMS1270, tms1270);
+DECLARE_LEGACY_CPU_DEVICE(TMS1300, tms1300);
+
+extern CPU_DISASSEMBLE( tms1000 );
+extern CPU_DISASSEMBLE( tms1100 );
+
+#endif /* _TMS0980_H_ */
+