src/machine.cpp
int32_t Computer::checkRange(int32_t value, int bytes) {
    int32_t range = 1 << (6 * bytes);
    if (std::abs(value) >= range) {
        if (bytes == 5) {
            overflow = true;
        }
        value %= range;
    }
    return value;
}
/** Check whether the given value can be fitted into the given number of bytes.
 * 
 * Overflow will be triggered if it the value can not be fitted into 5 bytes.
 * (Which means rI will not trigger overflow.)
 */
Check whether the given value can be fitted into the given number of bytes.

Overflow will be triggered if it the value can not be fitted into 5 bytes.
(Which means rI will not trigger overflow.)
Check whether the given value can be fitted into the given number of bytes . Overflow will be triggered if it the value can not be fitted into 5 bytes . ( Which means rI will not trigger overflow . )
int32_t Computer::checkRange(int32_t value, int bytes) {
    int32_t range = 1 << (6 * bytes);
    if (std::abs(value) >= range) {
        if (bytes == 5) {
            overflow = true;
        }
        value %= range;
    }
    return value;
}
int32_t Computer :: checkRange ( int32_t value , int bytes ) { int32_t range = 1 << ( 6 * bytes ) ; if ( std :: abs ( value ) >= range ) { if ( bytes == 5 ) { overflow = true ; } value %= range ; } return value ; }
Check whether the given value can be fitted into the given number of bytes.
Check whether the given value can be fitted into the given number of bytes .