Class: Fisk::Registers::Temp

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Operand

#m64?, #op_value, #register?, #unknown_label?, #works?

Constructor Details

#initialize(name, type) ⇒ Temp

Returns a new instance of Temp.



63
64
65
66
67
68
# File 'lib/fisk.rb', line 63

def initialize name, type
  @name        = name
  @type        = type
  @start_point = nil
  @end_point   = nil
end

Instance Attribute Details

#end_pointObject

Returns the value of attribute end_point.



61
62
63
# File 'lib/fisk.rb', line 61

def end_point
  @end_point
end

#nameObject (readonly)

Returns the value of attribute name.



60
61
62
# File 'lib/fisk.rb', line 60

def name
  @name
end

#registerObject

Returns the value of attribute register.



61
62
63
# File 'lib/fisk.rb', line 61

def register
  @register
end

#start_pointObject

Returns the value of attribute start_point.



61
62
63
# File 'lib/fisk.rb', line 61

def start_point
  @start_point
end

#typeObject (readonly)

Returns the value of attribute type.



60
61
62
# File 'lib/fisk.rb', line 60

def type
  @type
end

Instance Method Details

#extended_register?Boolean

Returns:

  • (Boolean)


72
73
74
# File 'lib/fisk.rb', line 72

def extended_register?
  @register.extended_register?
end

#rex_valueObject



76
77
78
# File 'lib/fisk.rb', line 76

def rex_value
  @register.rex_value
end

#temp_register?Boolean

Returns:

  • (Boolean)


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

def temp_register?; true; end

#valueObject



80
81
82
# File 'lib/fisk.rb', line 80

def value
  @register.value
end