hades.models.pic
Class PicCalc
java.lang.Object
hades.models.pic.PicCalc
- Direct Known Subclasses:
- PicCalcADDWF, PicCalcANDWF, PicCalcCLR, PicCalcCOMF, PicCalcDECF, PicCalcDECFSZ, PicCalcINCF, PicCalcINCFSZ, PicCalcIORWF, PicCalcMOVF, PicCalcMOVLW, PicCalcMOVWF, PicCalcNOP, PicCalcRLF, PicCalcRRF, PicCalcSUBWF, PicCalcSWAPF, PicCalcXORWF
- class PicCalc
- extends java.lang.Object
Perfom one calculation, this is defined to do both register and
literal calculations with different opcodes for equal instructions
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
statusReg
protected PicByteReg statusReg
skip
protected boolean skip
CARRY
public static int CARRY
DIGITCARRY
public static int DIGITCARRY
ZERO
public static int ZERO
PicCalc
public PicCalc(PicByteReg _statusReg)
testZero
protected void testZero(int value)
testCarry
protected void testCarry(int value)
testDigitCarry
protected void testDigitCarry(int value)
calc
public int calc(int op1,
int op2)
getSkip
public boolean getSkip()