ioUnits.add(dma);
// Add port 1,2 with interrupt capability!
// IOPorts will add themselves to the CPU
ioUnits.add(new IOPort(cpu, 1, 4, cpu.memory, 0x20));
ioUnits.add(new IOPort(cpu, 2, 1, cpu.memory, 0x28));
// Add port 3,4 & 5,6
for (int i = 0, n = 2; i < n; i++) {
ioUnits.add(new IOPort(cpu, (3 + i), 0, cpu.memory, 0x18 + i * 4));
ioUnits.add(new IOPort(cpu, (5 + i), 0, cpu.memory, 0x30 + i * 4));
}
ADC12 adc12 = new ADC12(cpu);
ioUnits.add(adc12);
cpu.setIORange(0x080, 16, adc12);