src/machine_io.cpp
void Computer::executeIOC(const InstructionWord& instruction) {
    auto device = getDevice(instruction.field());
    waitDevice(device);
    if (device->type() == IODeviceType::DISK) {
        device->control(rX.value());
    } else {
        int32_t address = getIndexedAddress(instruction);
        device->control(address);
    }
}
/** Execute special control signal.
 * 
 * The field value indicates the device.
 */
Execute special control signal.

The field value indicates the device.
Execute special control signal . The field value indicates the device .
void Computer::executeIOC(const InstructionWord& instruction) {
    auto device = getDevice(instruction.field());
    waitDevice(device);
    if (device->type() == IODeviceType::DISK) {
        device->control(rX.value());
    } else {
        int32_t address = getIndexedAddress(instruction);
        device->control(address);
    }
}
void Computer :: executeIOC ( const InstructionWord & instruction ) { auto device = getDevice ( instruction . field ( ) ) ; waitDevice ( device ) ; if ( device -> type ( ) == IODeviceType :: DISK ) { device -> control ( rX . value ( ) ) ; } else { int32_t address = getIndexedAddress ( instruction ) ; device -> control ( address ) ; } }
Execute special control signal.
Execute special control signal .