Sha256: ce5a3b7bfeec9de6459d468df9d97e1960c0e1e83d4bdec5707a81f83c2ae7fe

Contents?: true

Size: 404 Bytes

Versions: 7

Compression:

Stored size: 404 Bytes

Contents

require "rips/formats/format"  

module Rips
  module Formats

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

Version data entries

7 entries across 7 versions & 1 rubygems

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