xSwapI property Null safety
final
Implementation
static final NormalOperation xSwapI = NormalOperation(
calc: (Model m) {
Value tmp = m.memory.registers.index;
if (m.isFloatMode) {
tmp.asDouble; // Throw CalculatorError if not
}
m.memory.registers.index = m.x;
m.resultX = tmp;
},
name: 'x<=>I');