src/machine_address_transfer.cpp
void Computer::executeENNi(const InstructionWord& instruction) {
    int registerIndex = instruction.operation() - Instructions::INC1 + 1;
    auto& rIi = rI(registerIndex);
    int16_t address = getIndexedAddress(instruction);
    rIi.set(checkRange(-address, 2));
    if (address == 0) {
        rIi.negative = !instruction.negative;
    }
}
/** Enter negative address value to rI. */
Enter negative address value to rI.
Enter negative address value to rI .
void Computer::executeENNi(const InstructionWord& instruction) {
    int registerIndex = instruction.operation() - Instructions::INC1 + 1;
    auto& rIi = rI(registerIndex);
    int16_t address = getIndexedAddress(instruction);
    rIi.set(checkRange(-address, 2));
    if (address == 0) {
        rIi.negative = !instruction.negative;
    }
}
void Computer :: executeENNi ( const InstructionWord & instruction ) { int registerIndex = instruction . operation ( ) - Instructions :: INC1 + 1 ; auto & rIi = rI ( registerIndex ) ; int16_t address = getIndexedAddress ( instruction ) ; rIi . set ( checkRange ( - address , 2 ) ) ; if ( address == 0 ) { rIi . negative = ! instruction . negative ; } }
Enter negative address value to rI.
Enter negative address value to rI .