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