Sha256: 4691f00eb0f290f44e7f06a17182f4c3ae65c7d3eb3235c5d0f970dea4e5907c

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

require "rips/instructions/instruction"

module Rips
  module Instructions

    class Print < Instruction

      attr_reader :variables, :length

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rips-0.1.1 lib/rips/instructions/print.rb