Class: Fisk::UnknownLabel

Inherits:
Struct
  • Object
show all
Defined in:
lib/fisk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



126
127
128
# File 'lib/fisk.rb', line 126

def name
  @name
end

Instance Method Details

#unknown_label?Boolean

Returns:

  • (Boolean)


131
# File 'lib/fisk.rb', line 131

def unknown_label?; true; end

#valueObject



133
134
135
136
# File 'lib/fisk.rb', line 133

def value
  label = assembler.label_for(name)
  label.position - (insn.position + insn.bytesize)
end

#works?(type) ⇒ Boolean

Returns:

  • (Boolean)


127
128
129
# File 'lib/fisk.rb', line 127

def works? type
  type == "rel32"
end