Sha256: 5ac7808ce9faaf45aca843a5ee288ab597a6be0cfe58c2abbd2415418688947b

Contents?: true

Size: 464 Bytes

Versions: 5

Compression:

Stored size: 464 Bytes

Contents

require "rips/instructions/instruction"

module Rips
  module Instructions

    class Sesm < Instruction

      attr_reader :variables, :length

      # @variables: types of instruction's variables
      # @length: length in bits for each variable
      def initialize
        super("sesm",Formats::CFormat.new(0b1110))
        @variables = [Variables::Port.new, Variables::Inmediate.new]
        @length = {r2:2, r1:8, op:4, blank:2}
      end
    end
  end  
end

Version data entries

5 entries across 5 versions & 1 rubygems

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