picmicrocontroller
Class ProgramCounter

java.lang.Object
  extended by picmicrocontroller.ProgramCounter

public class ProgramCounter
extends java.lang.Object

This class provides operations related with the PC register of PIC 16F877


Constructor Summary
ProgramCounter(PIC tpic)
          Main constructor of program counter class.
 
Method Summary
 int getPC()
          This method returns
 void increment()
           
 void incrementBy2()
           
 void setPC(int newVal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgramCounter

public ProgramCounter(PIC tpic)
Main constructor of program counter class.

Method Detail

getPC

public int getPC()
This method returns

Returns:

setPC

public void setPC(int newVal)

increment

public void increment()

incrementBy2

public void incrementBy2()