Sha256: a53685f3518c54bd3c49fe980070c7c0e980becd7519212f406784cbfa15db35

Contents?: true

Size: 383 Bytes

Versions: 6

Compression:

Stored size: 383 Bytes

Contents

require "rips/formats/format"  

module Rips
  module Formats

    class BFormat < Format
      
      attr_reader :args
      
      # @args: all instruction's arguments
      def initialize (opcode)
        super(opcode,1)
        @args = {}
      end
      
      # Pass all arguments at once
      def set_arguments (args)
        @args[:r1] = args[0]
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rips-0.1.1 lib/rips/formats/bformat.rb
rips-0.1.0 lib/rips/formats/bformat.rb
rips-0.0.8 lib/rips/formats/bformat.rb
rips-0.0.7 lib/rips/formats/bformat.rb
rips-0.0.6 lib/rips/formats/bformat.rb
rips-0.0.5 lib/rips/formats/bformat.rb