hades.models.pic
Class PicCalcADDWF

java.lang.Object
  extended byhades.models.pic.PicCalc
      extended byhades.models.pic.PicCalcADDWF

class PicCalcADDWF
extends PicCalc

ADDWF-Operation


Field Summary
static int CARRY
           
static int DIGITCARRY
           
protected  boolean skip
           
protected  PicByteReg statusReg
           
static int ZERO
           
 
Constructor Summary
PicCalcADDWF(PicByteReg statusReg)
           
 
Method Summary
 int calc(int op1, int op2)
           
 boolean getSkip()
           
protected  void testCarry(int value)
           
protected  void testDigitCarry(int value)
           
protected  void testZero(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statusReg

protected PicByteReg statusReg

skip

protected boolean skip

CARRY

public static int CARRY

DIGITCARRY

public static int DIGITCARRY

ZERO

public static int ZERO
Constructor Detail

PicCalcADDWF

public PicCalcADDWF(PicByteReg statusReg)
Method Detail

calc

public int calc(int op1,
                int op2)
Overrides:
calc in class PicCalc

testZero

protected void testZero(int value)

testCarry

protected void testCarry(int value)

testDigitCarry

protected void testDigitCarry(int value)

getSkip

public boolean getSkip()