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);
cpu.setIORange(0x140, 16, adc12);
cpu.setIORange(0x150, 16, adc12);
cpu.setIORange(0x1a0, 8, adc12);