src/machine_conversion.cpp
void Computer::executeNUM() {
    int64_t num = 0;
    for (int i = 1; i <= 5; ++i) {
        num = num * 10 + rA[i] % 10;
    }
    for (int i = 1; i <= 5; ++i) {
        num = num * 10 + rX[i] % 10;
    }
    bool negative = rA.negative;
    if (num >= (1 << 30)) {
        overflow = true;
        num %= (1 << 30);
    }
    rA.set(num);
    rA.negative = negative;
}
/** Convert chars in rA and rX to number, and save the result to rA.
 * 
 * @see overflow
 */
Convert chars in rA and rX to number, and save the result to rA.

@see overflow
Convert chars in rA and rX to number and save the result to rA . @see overflow
void Computer::executeNUM() {
    int64_t num = 0;
    for (int i = 1; i <= 5; ++i) {
        num = num * 10 + rA[i] % 10;
    }
    for (int i = 1; i <= 5; ++i) {
        num = num * 10 + rX[i] % 10;
    }
    bool negative = rA.negative;
    if (num >= (1 << 30)) {
        overflow = true;
        num %= (1 << 30);
    }
    rA.set(num);
    rA.negative = negative;
}
void Computer :: executeNUM ( ) { int64_t num = 0 ; for ( int i = 1 ; i <= 5 ; ++ i ) { num = num * 10 + rA [ i ] % 10 ; } for ( int i = 1 ; i <= 5 ; ++ i ) { num = num * 10 + rX [ i ] % 10 ; } bool negative = rA . negative ; if ( num >= ( 1 << 30 ) ) { overflow = true ; num %= ( 1 << 30 ) ; } rA . set ( num ) ; rA . negative = negative ; }
Convert chars in rA and rX to number, and save the result to rA.
Convert chars in rA and rX to number and save the result to rA .