src/machine_io.cpp
void Computer::executeIN(const InstructionWord& instruction) {
    auto device = getDevice(instruction.field());
    if (!device->allowRead()) {
        throw RuntimeError(_lineOffset, "Device does not support read: " + std::to_string(instruction.field()));
    }
    waitDevice(device);
    int32_t address = getIndexedAddress(instruction, true);
    device->read(memory, address);
}
/** Read a block from the device.
 * 
 * The field value indicates the device.
 * 
 * @throw mixal::Runtime When the device cannot be read.
 */
Read a block from the device.

The field value indicates the device.

@throw mixal::Runtime When the device cannot be read.
Read a block from the device . The field value indicates the device . @throw mixal :: Runtime When the device cannot be read .
void Computer::executeIN(const InstructionWord& instruction) {
    auto device = getDevice(instruction.field());
    if (!device->allowRead()) {
        throw RuntimeError(_lineOffset, "Device does not support read: " + std::to_string(instruction.field()));
    }
    waitDevice(device);
    int32_t address = getIndexedAddress(instruction, true);
    device->read(memory, address);
}
void Computer :: executeIN ( const InstructionWord & instruction ) { auto device = getDevice ( instruction . field ( ) ) ; if ( ! device -> allowRead ( ) ) { throw RuntimeError ( _lineOffset , " " + std :: to_string ( instruction . field ( ) ) ) ; } waitDevice ( device ) ; int32_t address = getIndexedAddress ( instruction , true ) ; device -> read ( memory , address ) ; }
Read a block from the device.
Read a block from the device .