hades.models.pic
Class PicNoReg

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

public class PicNoReg
extends java.lang.Object
implements PicReg

PicNoReg - No register, to implement memory-addresses with no ram behind it


Constructor Summary
PicNoReg(PicBreakPoint newBp)
           
 
Method Summary
 boolean getBit(int selectedBit)
          Get one 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 one 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(int value)
           
 void write(int newValue)
          Write the normal content of 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
 

Constructor Detail

PicNoReg

public PicNoReg(PicBreakPoint newBp)
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

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

por

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

Specified by:
por 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)
Description copied from interface: PicReg
Write the normal content of 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)
Description copied from interface: PicReg
Set one specified bit

Specified by:
setBit in interface PicReg

getBit

public boolean getBit(int selectedBit)
Description copied from interface: PicReg
Get one 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(int value)