void emulate_Neg(Instruction instr) { var val1 = valueStack.pop(); if (val1.isInt32()) { valueStack.push(Int32Value.Neg((Int32Value)val1)); } else if (val1.isInt64()) { valueStack.push(Int64Value.Neg((Int64Value)val1)); } else if (val1.isReal8()) { valueStack.push(Real8Value.Neg((Real8Value)val1)); } else { valueStack.pushUnknown(); } }