asr property Null safety
final
Implementation
static final NormalOperation asr = NormalOperation.intOnly(
intCalc: (Model m) {
m.lastX = m.x;
BigInt x = m.x.internal;
BigInt newSignBit;
if (m.integerSignMode == SignMode.unsigned) {
newSignBit = BigInt.zero;
} else {
newSignBit = x & m.signMask;
}
m.cFlag = x & BigInt.one != BigInt.zero;
m.resultX = Value.fromInternal((x >> 1) | newSignBit);
},
name: 'ASR');