com.hdcookbook.grin.test.bigjdk
Class BDRegisterEmulator

java.lang.Object
  extended by com.hdcookbook.grin.test.bigjdk.BDRegisterEmulator

public class BDRegisterEmulator
extends java.lang.Object


Method Summary
 int getGPR(int reg)
           
static BDRegisterEmulator getInstance()
           
 int getPSR(int reg)
           
 void setGPR(int reg, int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static BDRegisterEmulator getInstance()

getGPR

public int getGPR(int reg)
Throws:
java.lang.IllegalArgumentException - if reg < 0 or >= 4096

setGPR

public void setGPR(int reg,
                   int value)
Throws:
java.lang.IllegalArgumentException - if reg < 0 or >= 4096

getPSR

public int getPSR(int reg)
Throws:
java.lang.IllegalArgumentException - if reg is an illegal value