128128__all__ = [
129129 "tmp_label" ,
130130 "_fpop" ,
131+ "HI16" ,
132+ "INITS" ,
133+ "LO16" ,
131134 "LABEL_COUNTER" ,
132135 "MEMORY" ,
136+ "MEMINITS" ,
137+ "QUADS" ,
138+ "REQUIRES" ,
133139 "TMP_COUNTER" ,
134140 "TMP_STORAGES" ,
135- "HI16" ,
136- "LO16" ,
141+ "emit" ,
142+ "emit_end" ,
143+ "emit_start" ,
137144]
138145
139146# Default code ORG
140- OPTIONS (Action .ADD , name = "org" , type = int , default = 32768 )
147+ OPTIONS (Action .ADD_IF_NOT_DEFINED , name = "org" , type = int , default = 32768 )
141148# Default HEAP SIZE (Dynamic memory) in bytes
142- OPTIONS (Action .ADD , name = "heap_size" , type = int , default = 4768 , ignore_none = True ) # A bit more than 4K
149+ OPTIONS (Action .ADD_IF_NOT_DEFINED , name = "heap_size" , type = int , default = 4768 , ignore_none = True ) # A bit more than 4K
143150
144151
145152def init ():
@@ -148,15 +155,15 @@ def init():
148155 common .init ()
149156
150157 # Default code ORG
151- OPTIONS (Action .ADD , name = "org" , type = int , default = 32768 )
158+ OPTIONS (Action .ADD_IF_NOT_DEFINED , name = "org" , type = int , default = 32768 )
152159 # Default HEAP SIZE (Dynamic memory) in bytes
153- OPTIONS (Action .ADD , name = "heap_size" , type = int , default = 4768 , ignore_none = True ) # A bit more than 4K
160+ OPTIONS (Action .ADD_IF_NOT_DEFINED , name = "heap_size" , type = int , default = 4768 , ignore_none = True ) # A bit more than 4K
154161 # Labels for HEAP START (might not be used if not needed)
155- OPTIONS (Action .ADD , name = "heap_start_label" , type = str , default = f"{ NAMESPACE } .ZXBASIC_MEM_HEAP" )
162+ OPTIONS (Action .ADD_IF_NOT_DEFINED , name = "heap_start_label" , type = str , default = f"{ NAMESPACE } .ZXBASIC_MEM_HEAP" )
156163 # Labels for HEAP SIZE (might not be used if not needed)
157- OPTIONS (Action .ADD , name = "heap_size_label" , type = str , default = f"{ NAMESPACE } .ZXBASIC_HEAP_SIZE" )
164+ OPTIONS (Action .ADD_IF_NOT_DEFINED , name = "heap_size_label" , type = str , default = f"{ NAMESPACE } .ZXBASIC_HEAP_SIZE" )
158165 # Flag for headerless mode (No prologue / epilogue)
159- OPTIONS (Action .ADD , name = "headerless" , type = bool , default = False , ignore_none = True )
166+ OPTIONS (Action .ADD_IF_NOT_DEFINED , name = "headerless" , type = bool , default = False , ignore_none = True )
160167
161168 engine .main () # inits the optimizer
162169
0 commit comments