Class SVM_NEG


public class SVM_NEG extends SVM_Instruction

SVM-INSTRUCTION: NEG

Runtime Stack
   ..., tos →
   ..., result

The 'tos' is popped off the Runtime stack. The 'result' is calculated as result = - tos. Then the 'result' is pushed onto the Runtime Stack.

'tos' must be of the arithmetic type, i.e. int, float or double.

Link to GitHub: Source File.

Author:
S-Port: Definition of S-code, Øystein Myhre Andersen