summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/fga002.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2019-04-04 07:36:51 +0200
committer Olivier Galibert <galibert@pobox.com>2019-04-05 00:00:58 +0200
commite39802db90860d6628c35265f7c78ce3534f5a53 (patch)
tree796f3fb6524361b61bad36530f3c56e027db57b9 /src/devices/machine/fga002.cpp
parentb54a2a517cdd8d9b9ba0456c54c0cced7dd794fc (diff)
68000: Rework interrupt handling [O. Galibert]
* Implement the cpu space as an address space * Make all vectored interrupts use the cpu space * Make it possible to direct the cpu space to another space, use it for amiga (which handles it as a normal AS_PROGRAM read) * Make it possible to disable the priority muxer and get 3 lines instead, use it for cps2
Diffstat (limited to 'src/devices/machine/fga002.cpp')
-rw-r--r--src/devices/machine/fga002.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/machine/fga002.cpp b/src/devices/machine/fga002.cpp
index 50ae32bfe0e..d9708fb37fc 100644
--- a/src/devices/machine/fga002.cpp
+++ b/src/devices/machine/fga002.cpp
@@ -253,9 +253,9 @@ void fga002_device::trigger_interrupt(uint8_t data)
m_out_int_cb(ASSERT_LINE);
}
-IRQ_CALLBACK_MEMBER(fga002_device::iack)
+u16 fga002_device::iack()
{
- int vec = M68K_INT_ACK_AUTOVECTOR;
+ int vec = 0x18; // Spurious interrupt
int vec_found = 0;
int level;
@@ -295,7 +295,7 @@ IRQ_CALLBACK_MEMBER(fga002_device::iack)
default: break; /* Since we need the vector for the switch statement the default job is already done */
}
LOGVEC("dev:%02x ", vec);
- if (vec == INT_ACK_AUTOVECTOR) vec = INT_EMPTY;
+ if (vec == 0x18) vec = INT_EMPTY;
LOGVEC("avec:%02x ", vec);
// Add vector page bits and return vector