Class Instruction

java.lang.Object
com.jugubell.bproccli.utils.Instruction

public class Instruction extends Object
Class for handling instruction form
Author:
Jugurtha Bellagh
  • Constructor Details

    • Instruction

      public Instruction(String name, boolean hasOperand, Integer opCode)
      Constructor of the Instruction with hardware instruction defaulted to true.
      Parameters:
      name - identifier of the instruction
      hasOperand - boolean true if it needs an operand
      opCode - the binary code of the operation supplied as an Integer
    • Instruction

      public Instruction(String name, boolean hasOperand, Integer opCode, boolean isHWinst)
      Constructor of the Instruction with control of instruction type (SW/HW).
      Parameters:
      name - identifier of the instruction
      hasOperand - boolean true if it needs an operand
      opCode - the binary code of the operation supplied as an Integer
      isHWinst - boolean true is it a harware instruction, false if it is a software instruction
  • Method Details

    • getName

      public String getName()
    • getHasOperand

      public boolean getHasOperand()
    • getOpCode

      public Integer getOpCode()