summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-05-18 13:32:56 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-05-18 13:40:29 -0400
commit0ba652e723036746aa1b1ac665411bee83771654 (patch)
treeba3cf42c70bf33ad22c07ad85b9d41f863a373e7 /src/mame/video
parente5dc17a4881d2b9ce4573b42d825cb6456bf529c (diff)
diexec: Interrupt API changes (nw)
- PULSE_LINE is no longer a value. Existing uses have been changed to pulse_input_line with attotime::zero as the second argument. - Formerly only INPUT_LINE_NMI and INPUT_LINE_RESET were allowed with PULSE_LINE. INPUT_LINE_NMI no longer receives special handling; instead, CPU devices must specify which of their input lines are edge-triggered and thus may be used with zero-width pulses by overriding the execute_input_edge_triggered predicate. INPUT_LINE_RESET is still special-cased, however. - execute_default_irq_vector now allows a different default vector to be specified for each input line. This added flexibility may or may not prove useful.
Diffstat (limited to 'src/mame/video')
-rw-r--r--src/mame/video/antic.cpp4
-rw-r--r--src/mame/video/decodmd1.cpp4
-rw-r--r--src/mame/video/decodmd2.cpp2
-rw-r--r--src/mame/video/decodmd3.cpp2
-rw-r--r--src/mame/video/fm7.cpp2
-rw-r--r--src/mame/video/ginganin.cpp2
-rw-r--r--src/mame/video/maria.cpp2
-rw-r--r--src/mame/video/sidearms.cpp2
-rw-r--r--src/mame/video/spdodgeb.cpp2
9 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/video/antic.cpp b/src/mame/video/antic.cpp
index 4f698e214c0..900dc1bad07 100644
--- a/src/mame/video/antic.cpp
+++ b/src/mame/video/antic.cpp
@@ -1972,7 +1972,7 @@ TIMER_CALLBACK_MEMBER( antic_device::issue_dli )
{
LOG((" @cycle #%3d issue DLI\n", cycle()));
m_r.nmist |= DLI_NMI;
- m_maincpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
+ m_maincpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}
else
{
@@ -2378,7 +2378,7 @@ void antic_device::generic_interrupt(int button_count)
LOG((" cause VBL NMI\n"));
/* set the VBL NMI status bit */
m_r.nmist |= VBL_NMI;
- m_maincpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
+ m_maincpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}
}
diff --git a/src/mame/video/decodmd1.cpp b/src/mame/video/decodmd1.cpp
index 08e27bd598e..c4bae0c1395 100644
--- a/src/mame/video/decodmd1.cpp
+++ b/src/mame/video/decodmd1.cpp
@@ -45,7 +45,7 @@ WRITE8_MEMBER( decodmd_type1_device::ctrl_w )
m_blank = 0;
m_frameswap = false;
m_status = 0;
- m_cpu->set_input_line(INPUT_LINE_RESET,PULSE_LINE);
+ m_cpu->pulse_input_line(INPUT_LINE_RESET, attotime::zero);
}
m_ctrl = data;
}
@@ -185,7 +185,7 @@ void decodmd_type1_device::set_busy(uint8_t input, uint8_t val)
TIMER_DEVICE_CALLBACK_MEMBER(decodmd_type1_device::dmd_nmi)
{
- m_cpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
+ m_cpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}
void decodmd_type1_device::decodmd1_map(address_map &map)
diff --git a/src/mame/video/decodmd2.cpp b/src/mame/video/decodmd2.cpp
index 11bff4e8c7a..eadbb8b7cf0 100644
--- a/src/mame/video/decodmd2.cpp
+++ b/src/mame/video/decodmd2.cpp
@@ -74,7 +74,7 @@ WRITE8_MEMBER( decodmd_type2_device::ctrl_w )
}
if((m_ctrl & 0x02) && !(data & 0x02))
{
- m_cpu->set_input_line(INPUT_LINE_RESET,PULSE_LINE);
+ m_cpu->pulse_input_line(INPUT_LINE_RESET, attotime::zero);
m_rombank1->set_entry(0);
logerror("DMD2: Reset\n");
}
diff --git a/src/mame/video/decodmd3.cpp b/src/mame/video/decodmd3.cpp
index 4d0fd36f9de..aa2e8267888 100644
--- a/src/mame/video/decodmd3.cpp
+++ b/src/mame/video/decodmd3.cpp
@@ -42,7 +42,7 @@ WRITE8_MEMBER( decodmd_type3_device::ctrl_w )
}
if((m_ctrl & 0x02) && !(data & 0x02))
{
- m_cpu->set_input_line(INPUT_LINE_RESET,PULSE_LINE);
+ m_cpu->pulse_input_line(INPUT_LINE_RESET, attotime::zero);
logerror("DMD3: Reset\n");
}
m_ctrl = data;
diff --git a/src/mame/video/fm7.cpp b/src/mame/video/fm7.cpp
index 234747a4ef8..8517e12dfc0 100644
--- a/src/mame/video/fm7.cpp
+++ b/src/mame/video/fm7.cpp
@@ -1087,7 +1087,7 @@ WRITE8_MEMBER(fm7_state::fm77av_sub_bank_w)
break;
}
// reset sub CPU, set busy flag, set reset flag
- m_sub->set_input_line(INPUT_LINE_RESET,PULSE_LINE);
+ m_sub->pulse_input_line(INPUT_LINE_RESET, attotime::zero);
m_video.sub_busy = 0x80;
m_video.sub_halt = 0;
m_video.sub_reset = 1;
diff --git a/src/mame/video/ginganin.cpp b/src/mame/video/ginganin.cpp
index 07ff5abe3f4..b6bdb2de6eb 100644
--- a/src/mame/video/ginganin.cpp
+++ b/src/mame/video/ginganin.cpp
@@ -173,7 +173,7 @@ WRITE16_MEMBER(ginganin_state::ginganin_vregs16_w)
break;
case 7:
m_soundlatch->write(space, 0, data);
- m_audiocpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
+ m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
break;
default:
logerror("CPU #0 PC %06X : Warning, videoreg %04X <- %04X\n", m_maincpu->pc(), offset, data);
diff --git a/src/mame/video/maria.cpp b/src/mame/video/maria.cpp
index 81308b28ca4..22d5e7f7141 100644
--- a/src/mame/video/maria.cpp
+++ b/src/mame/video/maria.cpp
@@ -392,7 +392,7 @@ void atari_maria_device::startdma(int lines)
if (m_nmi)
{
- m_cpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
+ m_cpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
m_nmi = 0;
}
}
diff --git a/src/mame/video/sidearms.cpp b/src/mame/video/sidearms.cpp
index 743f7743b84..c84cfd4c08a 100644
--- a/src/mame/video/sidearms.cpp
+++ b/src/mame/video/sidearms.cpp
@@ -44,7 +44,7 @@ WRITE8_MEMBER(sidearms_state::c804_w)
/* bit 4 resets the sound CPU */
if (data & 0x10)
{
- m_audiocpu->set_input_line(INPUT_LINE_RESET, PULSE_LINE);
+ m_audiocpu->pulse_input_line(INPUT_LINE_RESET, attotime::zero);
}
/* bit 5 enables starfield */
diff --git a/src/mame/video/spdodgeb.cpp b/src/mame/video/spdodgeb.cpp
index 495588e0168..0d6b2a6e1b2 100644
--- a/src/mame/video/spdodgeb.cpp
+++ b/src/mame/video/spdodgeb.cpp
@@ -93,7 +93,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(spdodgeb_state::interrupt)
if (scanline == 256)
{
- m_maincpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
+ m_maincpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
m_screen->update_partial(256);
}
else if ((scanline % 8) == 0)