hades.models.pic
Class PicAlu

java.lang.Object
  extended byhades.models.pic.PicAlu

public class PicAlu
extends java.lang.Object

PicAlu - The ALU implemented in Microchip-microcontrollers


Constructor Summary
PicAlu(PicByteReg _statusReg)
          Share the status bits with the register bank
 
Method Summary
 int alu(int instruction, int operand1, int operand2)
          Perform an Alu-Operation, operand1 is a register and operand2 is the working register
 int bitAlu(int instruction, int operand, int bitNumber)
          Perform an Bit-Operation, operand is a register and bit is the affected bit number
 boolean getSkip()
           
 int literalAlu(int instruction, int operand1, int operand2)
          Perform an Alu-Operation, operand1 is a literal and operand2 is the working register
 void por()
           
 void reset()
           
 void setSkip(boolean newSkip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PicAlu

public PicAlu(PicByteReg _statusReg)
Share the status bits with the register bank

Method Detail

por

public void por()

reset

public void reset()

setSkip

public void setSkip(boolean newSkip)

getSkip

public boolean getSkip()

alu

public int alu(int instruction,
               int operand1,
               int operand2)
Perform an Alu-Operation, operand1 is a register and operand2 is the working register


literalAlu

public int literalAlu(int instruction,
                      int operand1,
                      int operand2)
Perform an Alu-Operation, operand1 is a literal and operand2 is the working register


bitAlu

public int bitAlu(int instruction,
                  int operand,
                  int bitNumber)
Perform an Bit-Operation, operand is a register and bit is the affected bit number