class Rips::Formats::BFormat

Attributes

args[R]

Public Class Methods

new(opcode) click to toggle source

@args: all instruction's arguments

Calls superclass method
# File lib/rips/formats/bformat.rb, line 11
def initialize (opcode)
  super(opcode,1)
  @args = {}
end

Public Instance Methods

set_arguments(args) click to toggle source

Pass all arguments at once

# File lib/rips/formats/bformat.rb, line 17
def set_arguments (args)
  @args[:r1] = args[0]
end