class Rips::Instructions::Add
Attributes
length[R]
variables[R]
Public Class Methods
new()
click to toggle source
@variables: types of instruction's variables @length: length in bits for each variable
Calls superclass method
# File lib/rips/instructions/add.rb, line 12 def initialize super("add",Formats::DFormat.new(0b0010)) @variables = [Variables::Register.new, Variables::Register.new, Variables::Register.new] @length = {r3:4, r2:4, r1:4, op:4} end