#include <interpreter.h>
Protected Methods | |
void | readOperation (Op::Code &opCode, Int codeArg[], Int &newPC, Int &newSP) throw (Error) |
Command to identify next instruction and calculate newSP,newPC and possible code argument. |
Assumptions:
TODO: Verify readoperation and functions in operations.h
|
Command to identify next instruction and calculate newSP,newPC and possible code argument. Reads in one instruction and its argument from the code. Computes the new values of PC(newPC) and SP(newSP) FOR ALL INSTRUCTIONS. Raises errors when instruction would corrupt state of stack or instruction is unknown:
|