class Rips::Formats::DFormat
Attributes
args[R]
Public Class Methods
new(opcode)
click to toggle source
@args: all instruction's arguments
Calls superclass method
# File lib/rips/formats/dformat.rb, line 11 def initialize (opcode) super(opcode,3) @args = {} end
Public Instance Methods
set_arguments(args)
click to toggle source
Pass all arguments at once
# File lib/rips/formats/dformat.rb, line 17 def set_arguments (args) @args[:r1], @args[:r2], @args[:r3] = args[2], args[1], args[0] end