de.cau.cs.kieler.krep.evalbench.program.kep
Class Instruction
java.lang.Object
de.cau.cs.kieler.krep.evalbench.program.Instruction
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

Instruction
public Instruction()
Instruction
public Instruction(String id,
String name,
SCLine sourceCode)
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.