File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2179,7 +2179,7 @@ def convertToBool():
2179
2179
return result
2180
2180
2181
2181
2182
- def emit_end(MEMORY=None ):
2182
+ def emit_end():
2183
2183
""" This special ending autoinitializes required inits
2184
2184
(mainly alloc.asm) and changes the MEMORY initial address if it is
2185
2185
ORG XXXX to ORG XXXX + heap size
Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ def read_opts(folder_path, result=None):
84
84
85
85
result.append(pattern_)
86
86
87
- return sorted(result, key=lambda x: x.flag)
87
+ result[:] = sorted(result, key=lambda x: x.flag)
88
+ return result
88
89
89
90
90
91
def apply_match(asm_list, patterns_list, index=0):
Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ def main(args=None):
328
328
tmp = [x for x in backend.emit(backend.MEMORY, optimize=False) if x.strip()[0] != '#']
329
329
asm_output += tmp
330
330
asm_output = backend.emit_start() + asm_output
331
- asm_output += backend.emit_end(asm_output )
331
+ asm_output += backend.emit_end()
332
332
333
333
if options.asm: # Only output assembler file
334
334
with open_file(OPTIONS.outputFileName.value, 'wt', 'utf-8') as output_file:
You can’t perform that action at this time.
0 commit comments