Sha256: e28f7f50348079af9d5f25401d30347845736900eacf0a4a52a338177cb24095

Contents?: true

Size: 427 Bytes

Versions: 5

Compression:

Stored size: 427 Bytes

Contents

require "rips/instructions/instruction"

module Rips
  module Instructions

    class Jal < Instruction

      attr_reader :variables, :length

      # @variables: types of instruction's variables
      # @length: length in bits for each variable
      def initialize
        super("jal",Formats::BFormat.new(0b101000))
        @variables = [Variables::Address.new]
        @length = {r1:10, op:6}
      end
    end
  end  
end

Version data entries

5 entries across 5 versions & 1 rubygems

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