Sha256: e706e1c451a7f019a876b7b0a70eb39f6a104a9e5a08499022512a5490ab63f9

Contents?: true

Size: 467 Bytes

Versions: 5

Compression:

Stored size: 467 Bytes

Contents

require "rips/instructions/instruction"

module Rips
  module Instructions

    class Move < Instruction

      attr_reader :variables, :length

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

Version data entries

5 entries across 5 versions & 1 rubygems

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