hades.models.mips.instr
Class InstrHistory

java.lang.Object
  extended byhades.models.mips.instr.InstrHistory
All Implemented Interfaces:
Resetable

public class InstrHistory
extends java.lang.Object
implements Resetable

Tracks the last instructions


Field Summary
static int HISTORY_SIZE
           
static int UPPER_LIMIT
           
 
Constructor Summary
InstrHistory(ResetHandler resetHandler, InstrFrame newInstrFrame)
           
 
Method Summary
 void add(int address, int instruction)
           
 int getAddress(int pos)
           
 int getInstruction(int pos)
           
 int getPos()
           
 void por()
          Hardware reset or power on reset
 void reset()
          Software reset, initiated by a special assembly statement or an operating system call
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HISTORY_SIZE

public static final int HISTORY_SIZE
See Also:
Constant Field Values

UPPER_LIMIT

public static final int UPPER_LIMIT
See Also:
Constant Field Values
Constructor Detail

InstrHistory

public InstrHistory(ResetHandler resetHandler,
                    InstrFrame newInstrFrame)
Method Detail

por

public void por()
Description copied from interface: Resetable
Hardware reset or power on reset

Specified by:
por in interface Resetable

reset

public void reset()
Description copied from interface: Resetable
Software reset, initiated by a special assembly statement or an operating system call

Specified by:
reset in interface Resetable

add

public void add(int address,
                int instruction)

getPos

public int getPos()

getAddress

public int getAddress(int pos)

getInstruction

public int getInstruction(int pos)