summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m37710/m37710.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/m37710/m37710.h')
-rw-r--r--src/devices/cpu/m37710/m37710.h33
1 files changed, 23 insertions, 10 deletions
diff --git a/src/devices/cpu/m37710/m37710.h b/src/devices/cpu/m37710/m37710.h
index c96301013b6..7592b5edabe 100644
--- a/src/devices/cpu/m37710/m37710.h
+++ b/src/devices/cpu/m37710/m37710.h
@@ -55,18 +55,30 @@ enum
M37710_LINE_RESET,
// these are not interrupts, they're signals external hardware can send
- M37710_LINE_TIMERA0TICK,
- M37710_LINE_TIMERA1TICK,
- M37710_LINE_TIMERA2TICK,
- M37710_LINE_TIMERA3TICK,
- M37710_LINE_TIMERA4TICK,
- M37710_LINE_TIMERB0TICK,
- M37710_LINE_TIMERB1TICK,
- M37710_LINE_TIMERB2TICK,
+ M37710_LINE_TIMERA0IN,
+ M37710_LINE_TIMERA1IN,
+ M37710_LINE_TIMERA2IN,
+ M37710_LINE_TIMERA3IN,
+ M37710_LINE_TIMERA4IN,
+ M37710_LINE_TIMERB0IN,
+ M37710_LINE_TIMERB1IN,
+ M37710_LINE_TIMERB2IN,
+
+ M37710_LINE_TIMERA0OUT,
+ M37710_LINE_TIMERA1OUT,
+ M37710_LINE_TIMERA2OUT,
+ M37710_LINE_TIMERA3OUT,
+ M37710_LINE_TIMERA4OUT,
+ M37710_LINE_TIMERB0OUT,
+ M37710_LINE_TIMERB1OUT,
+ M37710_LINE_TIMERB2OUT,
M37710_LINE_MAX
};
+#define M37710_INTERRUPT_MAX (M37710_LINE_RESET + 1)
+
+
/* Registers - used by m37710_set_reg() and m37710_get_reg() */
enum
{
@@ -178,6 +190,7 @@ private:
uint8_t m_m37710_regs[128];
attotime m_reload[8];
emu_timer *m_timers[8];
+ int m_timer_out[8];
uint32_t m_dma0_src, m_dma0_dst, m_dma0_cnt, m_dma0_mode;
uint32_t m_dma1_src, m_dma1_dst, m_dma1_cnt, m_dma1_mode;
uint32_t m_dma2_src, m_dma2_dst, m_dma2_cnt, m_dma2_mode;
@@ -198,8 +211,8 @@ private:
typedef void (m37710_cpu_device::*set_line_func)(int line, int state);
typedef int (m37710_cpu_device::*execute_func)(int cycles);
- static const int m37710_irq_levels[M37710_LINE_MAX];
- static const int m37710_irq_vectors[M37710_LINE_MAX];
+ static const int m37710_irq_levels[M37710_INTERRUPT_MAX];
+ static const int m37710_irq_vectors[M37710_INTERRUPT_MAX];
static const char *const m37710_rnames[128];
static const char *const m37710_tnames[8];
static const opcode_func *const m37710i_opcodes[4];