Package com.jugubell.bproccli.utils
Class Instruction
java.lang.Object
com.jugubell.bproccli.utils.Instruction
Class for handling instruction form
- Author:
- Jugurtha Bellagh
-
Constructor Summary
ConstructorsConstructorDescriptionInstruction(String name, boolean hasOperand, Integer opCode) Constructor of theInstructionwith hardware instruction defaulted to true.Instruction(String name, boolean hasOperand, Integer opCode, boolean isHWinst) Constructor of theInstructionwith control of instruction type (SW/HW). -
Method Summary
-
Constructor Details
-
Instruction
Constructor of theInstructionwith hardware instruction defaulted to true.- Parameters:
name- identifier of the instructionhasOperand- boolean true if it needs an operandopCode- the binary code of the operation supplied as anInteger
-
Instruction
Constructor of theInstructionwith control of instruction type (SW/HW).- Parameters:
name- identifier of the instructionhasOperand- boolean true if it needs an operandopCode- the binary code of the operation supplied as anIntegerisHWinst- boolean true is it a harware instruction, false if it is a software instruction
-
-
Method Details
-
getName
-
getHasOperand
public boolean getHasOperand() -
getOpCode
-