hades.models.mips.instr
Class AluSpecialBaseInstr

java.lang.Object
  extended byhades.models.mips.instr.BaseInstr
      extended byhades.models.mips.instr.AluSpecialBaseInstr
All Implemented Interfaces:
Resetable
Direct Known Subclasses:
DivInstr, DivUInstr, MultInstr, MultUInstr

public class AluSpecialBaseInstr
extends BaseInstr
implements Resetable

This is the base class to all ALU using instructions in register format


Field Summary
protected  int remainder
           
 
Fields inherited from class hades.models.mips.instr.BaseInstr
breakpoint, dataMmuAdr, dataRealAdr, dataValue, instrFrameNumber, instrLongFormat, instrName, instrShortFormat, isJump, partHandler, reg, regWritten, result, splitter
 
Constructor Summary
AluSpecialBaseInstr(PartHandler newPartHandler, Splitter newSplitter)
           
 
Method Summary
 int giveDataAdr()
          Prewrite result, return real address
 int writeRegister()
          Write resulting value into register, return register written into
 
Methods inherited from class hades.models.mips.instr.BaseInstr
calcAlu, getBreakpoint, getInstrLongFormat, getInstrName, getInstrShortFormat, getIsJump, init, operateData, por, reset, setBreakpoint, setInstrFrameNumber, translateDataAdr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hades.models.mips.core.Resetable
por, reset
 

Field Detail

remainder

protected int remainder
Constructor Detail

AluSpecialBaseInstr

public AluSpecialBaseInstr(PartHandler newPartHandler,
                           Splitter newSplitter)
Method Detail

giveDataAdr

public int giveDataAdr()
Prewrite result, return real address

Overrides:
giveDataAdr in class BaseInstr

writeRegister

public int writeRegister()
Write resulting value into register, return register written into

Overrides:
writeRegister in class BaseInstr