hades.models.pic
Class PicPcReg

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

public class PicPcReg
extends PicWordReg
implements PicReg

PicPcReg - Register for the programm counter. The PIC16C84-pc has 13 bits, but only the lowest 8 bits are directly accessible. The upper bits are taken from PCLATH, which is a write-only register


Field Summary
static int accessSize
           
static int realSize
           
 
Fields inherited from class hades.models.pic.PicWordReg
size
 
Constructor Summary
PicPcReg(PicBreakPoint newBp, PicWordReg newPclath, PicEpromBreakPoints newEpromBreakPoints)
           
 
Method Summary
 int read()
          Read the PCL, the 8 lowest bits
 int readAll()
          Read the extended content of the register
 int readPc()
          Read the PC, all 11 bits
 void setBit(int selectedBit, boolean newValue)
          Set one specified bit
 void testEpromBreakPoint(int newValue)
           
 void write(int newValue)
          Write PCL, 8 bit
 void writeAll(int newValue)
          Write the extended content of the register
 void writePc(int newValue)
          Write PC with 11 bits, CALL and GOTO
 
Methods inherited from class hades.models.pic.PicWordReg
getBit, getBreakPoint, getSize, getSizeAll, isDirty, por, reset, resetDirtyFlag, setBreakPoint, setDirtyFlag, testBreakPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hades.models.pic.PicReg
getBit, getBreakPoint, getSize, getSizeAll, por, reset, setBreakPoint
 

Field Detail

realSize

public static final int realSize
See Also:
Constant Field Values

accessSize

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

PicPcReg

public PicPcReg(PicBreakPoint newBp,
                PicWordReg newPclath,
                PicEpromBreakPoints newEpromBreakPoints)
Method Detail

read

public int read()
Read the PCL, the 8 lowest bits

Specified by:
read in interface PicReg
Overrides:
read in class PicWordReg

readAll

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

Specified by:
readAll in interface PicReg
Overrides:
readAll in class PicWordReg

readPc

public int readPc()
Read the PC, all 11 bits


writeAll

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

Specified by:
writeAll in interface PicReg
Overrides:
writeAll in class PicWordReg

write

public void write(int newValue)
Write PCL, 8 bit

Specified by:
write in interface PicReg
Overrides:
write in class PicWordReg

writePc

public void writePc(int newValue)
Write PC with 11 bits, CALL and GOTO


setBit

public void setBit(int selectedBit,
                   boolean newValue)
Description copied from interface: PicReg
Set one specified bit

Specified by:
setBit in interface PicReg
Overrides:
setBit in class PicWordReg

testEpromBreakPoint

public void testEpromBreakPoint(int newValue)