Add interrupt flag to CPU

This commit is contained in:
Seth Morabito committed 2014-01-25 19:53:53 -08:00
1 parent 3d36cd5460
commit 0c5035fc56
3 files changed
+151 -102

No files matched your search

+12
View File
@@ -151,6 +151,18 @@ public class Bus {
throw new MemoryAccessException("Bus write failed. No device at address " + String.format("$%04X", address));
}
public void assertInterrupt() {
if (cpu != null) {
cpu.assertInterrupt();
}
}
public void clearInterrupt() {
if (cpu != null) {
cpu.clearInterrupt();
}
}
public SortedSet<Device> getDevices() {
// Expose a copy of the device list, not the original
return new TreeSet<Device>(devices);