Global

Methods

add(item, i)

Performs Addition Operation Inside Virtual Machine
Parameters:
Name Type Description
item Object Operand Details and Arguments
i Number Index of The Instrcution
Source:

branch(item, i)

Performs Branch and Jump Operation Inside Virtual Machine
Parameters:
Name Type Description
item Object Operand Details and Arguments
i Number Index of The Instrcution
Source:

checkType(token, type) → {boolean}

Type Checking of Token against Given Type Definition
Parameters:
Name Type Description
token string Token to be Parsed
type string Data Type Referred by Token
Source:
Returns:
True iff Token is of Valid Data Type
Type
boolean

divide(item, i)

Performs Division Operation Inside Virtual Machine
Parameters:
Name Type Description
item Object Operand Details and Arguments
i Number Index of The Instrcution
Source:

isInstruction(opcode) → {Object}

Parses Operation Code From an Instruction
Parameters:
Name Type Description
opcode string Operation Code (MIPS-IV)
Source:
Returns:
Operation Specification
Type
Object

load(item, i)

Performs Load Operation Inside Virtual Machine
Parameters:
Name Type Description
item Object Operand Details and Arguments
i Number Index of The Instrcution
Source:

logicalAnd(item, i)

Performs logical AND Operation Inside Virtual Machine
Parameters:
Name Type Description
item Object Operand Details and Arguments
i Number Index of The Instrcution
Source:

logicalOr(item, i)

Performs logical OR Operation Inside Virtual Machine
Parameters:
Name Type Description
item Object Operand Details and Arguments
i Number Index of The Instrcution
Source:

logicalShift(item, i)

Performs logical SHIFT Operation Inside Virtual Machine
Parameters:
Name Type Description
item Object Operand Details and Arguments
i Number Index of The Instrcution
Source:

mapToEncoding(keyword) → {string}

Realizes The Encoding Type of a Given String
Parameters:
Name Type Description
keyword string MIPS Keyword for Encoding
Source:
Returns:
Standard Name for Encoding
Type
string

move(item, i)

Performs Move Operation Inside Virtual Machine
Parameters:
Name Type Description
item Object Operand Details and Arguments
i Number Index of The Instrcution
Source:

multiply(item, i)

Performs Multiplication Operation Inside Virtual Machine
Parameters:
Name Type Description
item Object Operand Details and Arguments
i Number Index of The Instrcution
Source:

store(item, i)

Performs Store Operation Inside Virtual Machine
Parameters:
Name Type Description
item Object Operand Details and Arguments
i Number Index of The Instrcution
Source:

subtract(item, i)

Performs Subtraction Operation Inside Virtual Machine
Parameters:
Name Type Description
item Object Operand Details and Arguments
i Number Index of The Instrcution
Source:

syscall(line)

Performs Kernel System Call Inside Virtual Machine
Parameters:
Name Type Description
line Number Index of The Instrcution
Source: