hades.models.pic
Class PicIndfReg

java.lang.Object
  extended byhades.models.pic.PicIndfReg
All Implemented Interfaces:
PicReg

public class PicIndfReg
extends java.lang.Object
implements PicReg

PicIndfReg - Register for indirect addressing, if indf itself is addressed indirect then a shadow-register will be used to prevent recursive dead - actually this shadow-register is not a real register, it is implemented as a PicNoReg with no functionality


Field Summary
 PicNoReg byte0
           
 PicWordReg fsr
           
 PicReg[] reg
           
 PicByteReg status
           
 
Constructor Summary
PicIndfReg(PicBreakPoint newBp, PicWordReg newFsr, PicByteReg newStatus, PicReg[] newReg)
           
 
Method Summary
protected  PicReg findSource()
           
 boolean getBit(int selectedBit)
          test a specified bit
 int getBreakPoint()
          Get BreakPoint returns the value that has been set by setBreakPoint
 int getSize()
          How many bits are accessable with read() and write() ?
 int getSizeAll()
          How many bits are accessable with readAll() and writeAll() ?
 void por()
          Power-on-reset
 int read()
          Read the normal content of the register
 int readAll()
          Read the extended content of the register
 void reset()
          Normal reset, often this will be the same as por()
 void setBit(int selectedBit, boolean newValue)
          set a specified bit
 void setBreakPoint(int value)
          Set BreakPoint: value >= 0 : break if content equals value value = -1 : no breakpoint value = -2 : break if content has changed
protected  void testBreakPoint()
           
 void write(int newValue)
          write a new value into the register
 void writeAll(int newValue)
          Write the extended content of the register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

byte0

public PicNoReg byte0

fsr

public PicWordReg fsr

reg

public PicReg[] reg

status

public PicByteReg status
Constructor Detail

PicIndfReg

public PicIndfReg(PicBreakPoint newBp,
                  PicWordReg newFsr,
                  PicByteReg newStatus,
                  PicReg[] newReg)
Method Detail

getSize

public int getSize()
Description copied from interface: PicReg
How many bits are accessable with read() and write() ?

Specified by:
getSize in interface PicReg

getSizeAll

public int getSizeAll()
Description copied from interface: PicReg
How many bits are accessable with readAll() and writeAll() ?

Specified by:
getSizeAll in interface PicReg

findSource

protected PicReg findSource()

por

public void por()
Description copied from interface: PicReg
Power-on-reset

Specified by:
por in interface PicReg

reset

public void reset()
Description copied from interface: PicReg
Normal reset, often this will be the same as por()

Specified by:
reset in interface PicReg

read

public int read()
Description copied from interface: PicReg
Read the normal content of the register

Specified by:
read in interface PicReg

readAll

public int readAll()
Description copied from interface: PicReg
Read the extended content of the register

Specified by:
readAll in interface PicReg

write

public void write(int newValue)
write a new value into the register

Specified by:
write in interface PicReg

writeAll

public void writeAll(int newValue)
Description copied from interface: PicReg
Write the extended content of the register

Specified by:
writeAll in interface PicReg

setBit

public void setBit(int selectedBit,
                   boolean newValue)
set a specified bit

Specified by:
setBit in interface PicReg

getBit

public boolean getBit(int selectedBit)
test a specified bit

Specified by:
getBit in interface PicReg

setBreakPoint

public void setBreakPoint(int value)
Description copied from interface: PicReg
Set BreakPoint: value >= 0 : break if content equals value value = -1 : no breakpoint value = -2 : break if content has changed

Specified by:
setBreakPoint in interface PicReg

getBreakPoint

public int getBreakPoint()
Description copied from interface: PicReg
Get BreakPoint returns the value that has been set by setBreakPoint

Specified by:
getBreakPoint in interface PicReg

testBreakPoint

protected void testBreakPoint()