Class: AArch64::Assembler::Immediate

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

Instance Method Summary collapse

Constructor Details

#initialize(offset) ⇒ Immediate

Returns a new instance of Immediate.



134
135
136
137
# File 'lib/aarch64.rb', line 134

def initialize offset
  @offset = offset
  freeze
end

Instance Method Details

#immediate?Boolean

Returns:

  • (Boolean)


142
# File 'lib/aarch64.rb', line 142

def immediate?; true; end

#unwrap_labelObject



139
140
141
# File 'lib/aarch64.rb', line 139

def unwrap_label
  @offset
end