de.cau.cs.kieler.krep.evalbench.program.kep
Class Instruction

java.lang.Object
  extended by de.cau.cs.kieler.krep.evalbench.program.Instruction
      extended by de.cau.cs.kieler.krep.evalbench.program.kep.Instruction
All Implemented Interfaces:
InstInf
Direct Known Subclasses:
AddrInstruction, CAwaits, Clrc, Halt, Join, Nothing, Pause, Prio, RegisterInst, Return, Setc, SigInstruction

public class Instruction
extends Instruction
implements InstInf

Rating red

Constructor Summary
Instruction()
           
Instruction(String id, String name, SCLine sourceCode)
           
 
Method Summary
 void asmLabel(HashMap<String,Integer> label2addr)
          replace label by addresses.
 String encode()
           
 boolean equals(String crit)
           
 String getId()
           
protected  int[] getObj()
           
 SCLine getScource()
           
 String info()
           
 int length()
           
 void setSourceCode(SCLine sourceCode)
           
 String toString()
           
 
Methods inherited from class de.cau.cs.kieler.krep.evalbench.program.Instruction
getLabel, getLabels, setLabel, setLabels, writeObj
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instruction

public Instruction()

Instruction

public Instruction(String id,
                   String name,
                   SCLine sourceCode)
Method Detail

toString

public String toString()
Specified by:
toString in interface InstInf
Specified by:
toString in class Instruction

encode

public String encode()
Specified by:
encode in interface InstInf

info

public String info()
Specified by:
info in interface InstInf

length

public int length()
Specified by:
length in interface InstInf

getScource

public SCLine getScource()

setSourceCode

public void setSourceCode(SCLine sourceCode)

getId

public String getId()

equals

public boolean equals(String crit)

asmLabel

public void asmLabel(HashMap<String,Integer> label2addr)
Description copied from class: Instruction
replace label by addresses.

Specified by:
asmLabel in class Instruction
Parameters:
label2addr - mapping from label to absolute addresses in the instruction ROM

getObj

protected int[] getObj()
Specified by:
getObj in class Instruction
Returns:
object code for the instruction.