summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/z80/tmpz84c015.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2014-07-22 06:14:55 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2014-07-22 06:14:55 +0000
commit5d7e1fcc62a7f9dd5441eaccbc274f9327efcf00 (patch)
tree59a6e5c3c090f1f83dfd20359ab321fb69713e00 /src/emu/cpu/z80/tmpz84c015.c
parentc4e9058ee26841baae4c0fd51e081949747d5f48 (diff)
Cleanups and version bump
Diffstat (limited to 'src/emu/cpu/z80/tmpz84c015.c')
-rw-r--r--src/emu/cpu/z80/tmpz84c015.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/cpu/z80/tmpz84c015.c b/src/emu/cpu/z80/tmpz84c015.c
index f1d7856988b..40970912d14 100644
--- a/src/emu/cpu/z80/tmpz84c015.c
+++ b/src/emu/cpu/z80/tmpz84c015.c
@@ -2,7 +2,7 @@
Toshiba TMPZ84C015, MPUZ80/TLCS-Z80 ASSP Family
Z80 CPU, SIO, CTC, CGC, PIO, WDT
-
+
TODO:
- SIO configuration, or should that be up to the driver?
- CGC (clock generator/controller)
@@ -133,13 +133,13 @@ void tmpz84c015_device::device_post_load()
WRITE8_MEMBER(tmpz84c015_device::irq_priority_w)
{
data &= 7;
-
+
if (data > 5)
{
logerror("tmpz84c015: irq_priority_w undefined state %X\n", data);
data &= 3; // guess
}
-
+
if (m_irq_priority != data)
{
static const char *dev[3] = { "tmpz84c015_ctc", "tmpz84c015_sio", "tmpz84c015_pio" };
@@ -152,7 +152,7 @@ WRITE8_MEMBER(tmpz84c015_device::irq_priority_w)
{ 2, 0, 1 }, // 4: pio -> ctc -> sio -> ext
{ 1, 2, 0 } // 5: sio -> pio -> ctc -> ext
};
-
+
// reconfigure first 3 entries in daisy chain
const z80_daisy_config daisy_chain[] =
{
@@ -162,13 +162,13 @@ WRITE8_MEMBER(tmpz84c015_device::irq_priority_w)
{ NULL }
};
m_daisy.init(this, daisy_chain);
-
+
m_irq_priority = data;
}
}
static MACHINE_CONFIG_FRAGMENT( tmpz84c015 )
-
+
/* basic machine hardware */
MCFG_Z80SIO0_ADD("tmpz84c015_sio", DERIVED_CLOCK(1,1), 0, 0, 0, 0)
MCFG_Z80DART_OUT_INT_CB(INPUTLINE(DEVICE_SELF, INPUT_LINE_IRQ0))