Sha256: 055035b289b963072ad3ae28245ff4bf92a806e34e0466ca26988db9b1cfdf3f

Contents?: true

Size: 429 Bytes

Versions: 3

Compression:

Stored size: 429 Bytes

Contents

require "rips/instructions/instruction"

module Rips
  module Instructions

    class Bnez < Instruction

      attr_reader :variables, :length

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rips-0.1.1 lib/rips/instructions/bnez.rb
rips-0.1.0 lib/rips/instructions/bnez.rb
rips-0.0.8 lib/rips/instructions/bnez.rb