Module: Lignite::VariableDeclarer

Included in:
Assembler, BodyCompiler, DirectCommands
Defined in:
lib/lignite/variables.rb

Overview

#variables are Variables

Instance Method Summary collapse

Instance Method Details

#array8(id, count) ⇒ Object



66
67
68
# File 'lib/lignite/variables.rb', line 66

def array8(id, count)
  variables.add(id, count * 1, "C#{count}")
end

#data16(id) ⇒ Object



50
51
52
# File 'lib/lignite/variables.rb', line 50

def data16(id)
  variables.add(id, 2, "S<")
end

#data32(id) ⇒ Object



54
55
56
# File 'lib/lignite/variables.rb', line 54

def data32(id)
  variables.add(id, 4, "L<")
end

#data8(id) ⇒ Object



46
47
48
# File 'lib/lignite/variables.rb', line 46

def data8(id)
  variables.add(id, 1, "C")
end

#dataf(id) ⇒ Object



58
59
60
# File 'lib/lignite/variables.rb', line 58

def dataf(id)
  variables.add(id, 4, "e")
end

#datas(id, size) ⇒ Object



62
63
64
# File 'lib/lignite/variables.rb', line 62

def datas(id, size)
  variables.add(id, size, "a#{size}")
end