void emulate_Rem(Instruction instr) { var val2 = valueStack.pop(); var val1 = valueStack.pop(); if (val1.isInt32() && val2.isInt32()) { valueStack.push(Int32Value.Rem((Int32Value)val1, (Int32Value)val2)); } else if (val1.isInt64() && val2.isInt64()) { valueStack.push(Int64Value.Rem((Int64Value)val1, (Int64Value)val2)); } else if (val1.isReal8() && val2.isReal8()) { valueStack.push(Real8Value.Rem((Real8Value)val1, (Real8Value)val2)); } else { valueStack.pushUnknown(); } }