fi.hu.cs.titokone
Class Interpreter

java.lang.Object
  extended byfi.hu.cs.titokone.Interpreter
Direct Known Subclasses:
BinaryInterpreter, SymbolicInterpreter

public class Interpreter
extends java.lang.Object

This class contains information common to various interpreters.


Field Summary
static java.lang.Integer ADDR
           
static java.lang.Integer ADDR_LESS_FETCHES
           
static int addressFieldLength
           
protected static java.lang.Object[][] addressingData
          This field contains a two-dimensional array of translations between memory addressing types as integers and as symbols repressenting them.
static int addressModeLength
           
protected static java.lang.Object[][] commandData
          This field contains a two-dimensional array of translations between opcodes as integers, as symbolic command names and the variety of parameters they accept (nothing, one register (usually SP) only, two registers only or possibly two registers and possibly a memory address/constant).
static java.lang.Integer FULL
           
static java.lang.Integer FULL_LESS_FETCHES
           
static java.lang.Integer NONE
          This field represents one of the ranges of parameters a command might take.
static int opcodeLength
          This field specifies the opcode field length in number of bits.
static java.lang.Integer REG
           
static java.lang.Integer REG_DEVICE
           
protected static java.lang.Object[][] registerData
          This field contains a two-dimensional array of translations between register symbolic names and the integers used to represent them in numeric commands.
static int registerFieldLength
           
static java.lang.Integer SP_ONLY
           
static java.lang.Integer SP_REG
           
static java.lang.Integer SVC
           
 
Constructor Summary
Interpreter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

opcodeLength

public static final int opcodeLength
This field specifies the opcode field length in number of bits.

See Also:
Constant Field Values

addressModeLength

public static final int addressModeLength
See Also:
Constant Field Values

registerFieldLength

public static final int registerFieldLength
See Also:
Constant Field Values

addressFieldLength

public static final int addressFieldLength
See Also:
Constant Field Values

NONE

public static final java.lang.Integer NONE
This field represents one of the ranges of parameters a command might take. See commandData.


REG

public static final java.lang.Integer REG

SP_REG

public static final java.lang.Integer SP_REG

SP_ONLY

public static final java.lang.Integer SP_ONLY

ADDR

public static final java.lang.Integer ADDR

FULL

public static final java.lang.Integer FULL

FULL_LESS_FETCHES

public static final java.lang.Integer FULL_LESS_FETCHES

REG_DEVICE

public static final java.lang.Integer REG_DEVICE

ADDR_LESS_FETCHES

public static final java.lang.Integer ADDR_LESS_FETCHES

SVC

public static final java.lang.Integer SVC

commandData

protected static final java.lang.Object[][] commandData
This field contains a two-dimensional array of translations between opcodes as integers, as symbolic command names and the variety of parameters they accept (nothing, one register (usually SP) only, two registers only or possibly two registers and possibly a memory address/constant). The command names are in all capital letters.


addressingData

protected static final java.lang.Object[][] addressingData
This field contains a two-dimensional array of translations between memory addressing types as integers and as symbols repressenting them.


registerData

protected static final java.lang.Object[][] registerData
This field contains a two-dimensional array of translations between register symbolic names and the integers used to represent them in numeric commands.

Constructor Detail

Interpreter

public Interpreter()