Sha256: 36efda08878523b0cfbf31b0dddb70367b22b62b4ed1fceb91ea64138d9814cf

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

require "rips/instructions/instruction"

module Rips
  module Instructions

    class Srl < Instruction

      attr_reader :variables, :length

      # @variables: types of instruction's variables
      # @length: length in bits for each variable
      def initialize
        super("srl",Formats::DFormat.new(0b0110))
        @variables = [Variables::Register.new, Variables::Register.new, Variables::Register.new]
        @length = {r3:4, r2:4, r1:4, op:4}
      end
    end
  end  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rips-0.1.1 lib/rips/instructions/srl.rb