Class: Tem::Assembler::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/tem/definitions/assembler.rb

Instance Method Summary collapse

Instance Method Details

#done_assembling(proxy) ⇒ Object



23
24
25
26
27
28
29
30
31
# File 'lib/tem/definitions/assembler.rb', line 23

def done_assembling(proxy)
  assembled = super
  bytes = assembled[:bytes]
  labels = assembled[:labels]
  Tem::SecPack.new :body => bytes,
                   :labels => labels, :ep => labels[:__entry] || 0,
                   :sp => labels[:__stack] || bytes.length,
                   :lines => assembled[:line_info]    
end