Class SVM_RETURN
java.lang.Object
svm.instruction.SVM_Instruction
svm.instruction.SVM_RETURN
SVM-INSTRUCTION: RETURN rutID returAddr
Runtime Stack
..., ??? →
..., ???
Link to GitHub: Source File.
- Author:
- S-Port: Definition of S-code, Øystein Myhre Andersen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ObjectAddressThe retur addressprivate final StringThe Routine identFields inherited from class SVM_Instruction
iADD, iADDREG, iAND, iASSIGN, iCALL, iCALLSYS, iCOMPARE, iCONVERT, iDECO, iDIST, iDIV, iDUP, iENTER, iEQV, iGETO, iGOTO, iIMP, iINCO, iINITO, iJUMP, iJUMPIF, iLINE, iLOAD, iLOADA, iMax, iMULT, iNEG, iNOOP, iNOT, iOR, iPOPK, iPRECALL, iPUSHC, iPUSHLEN, iPUSHR, iREM, iRESTORE, iRETURN, iSAVE, iSETO, iSHIFT, iSTORE, iSUB, iSWITCH, iXOR, opcode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConstruct an SVM_RETURN instruction from the given input.SVM_RETURN(String rutID, ObjectAddress returAddr) Construct a new SVM_RETURN instruction -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Execute this SVM instructionstatic SVM_Instructionread(AttributeInputStream inpt) Reads an SVM_RETURN instruction from the given input.toString()voidwrite(AttributeOutputStream oupt) Write this SVM instruction to the given output.Methods inherited from class SVM_Instruction
edOpcode, readObject
-
Field Details
-
rutID
The Routine ident -
returAddr
The retur address
-
-
Constructor Details
-
SVM_RETURN
Construct a new SVM_RETURN instruction- Parameters:
rutID- the Routine identreturAddr- the retur address
-
SVM_RETURN
Construct an SVM_RETURN instruction from the given input.- Parameters:
inpt- the input stream- Throws:
IOException- if IOException occur
-
-
Method Details
-
toString
-
execute
public void execute()Description copied from class:SVM_InstructionExecute this SVM instruction- Overrides:
executein classSVM_Instruction
-
write
Description copied from class:SVM_InstructionWrite this SVM instruction to the given output.- Overrides:
writein classSVM_Instruction- Parameters:
oupt- the output stream- Throws:
IOException- if IOException occur
-
read
Reads an SVM_RETURN instruction from the given input.- Parameters:
inpt- the input stream- Returns:
- the SVM_RETURN instruction read
- Throws:
IOException- if IOException occur
-