Sha256: 69d903231fb402e99b675a3cb5e971339c5853e85dc646bb5ea85dd01c09bc69

Contents?: true

Size: 463 Bytes

Versions: 5

Compression:

Stored size: 463 Bytes

Contents

require "rips/instructions/instruction"

module Rips
  module Instructions

    class Lesr < Instruction

      attr_reader :variables, :length

      # @variables: types of instruction's variables
      # @length: length in bits for each variable
      def initialize
        super("lesr",Formats::CFormat.new(0b1011))
        @variables = [Variables::Register.new, Variables::Port.new]
        @length = {r2:4, r1:2, op:4, blank:6}
      end
    end
  end  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rips-0.1.1 lib/rips/instructions/lesr.rb
rips-0.1.0 lib/rips/instructions/lesr.rb
rips-0.0.8 lib/rips/instructions/lesr.rb
rips-0.0.7 lib/rips/instructions/lesr.rb
rips-0.0.6 lib/rips/instructions/lesr.rb