Archived
1
0
Fork 0

support @function compiled by gcc

This commit is contained in:
sup39 2022-11-09 20:18:19 +09:00
parent f768990dbd
commit 8f8a97de4e
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,6 @@
[metadata] [metadata]
name = supSMSASM name = supSMSASM
version = 0.0.5b1 version = 0.0.5
author = sup39 author = sup39
author_email = sms@sup39.dev author_email = sms@sup39.dev
description = A tool to make Gecko code from ASM for SMS description = A tool to make Gecko code from ASM for SMS

View file

@ -95,7 +95,9 @@ def asm2gecko(fnIn, dolver):
for line in lines[8:]: for line in lines[8:]:
if not re.match('^[0-9a-f]{8} \w', line): continue if not re.match('^[0-9a-f]{8} \w', line): continue
cols = line.split() cols = line.split()
if len(cols) != 5: continue if len(cols) == 6 and cols[2] == 'F': # @function
cols = cols[:2]+cols[3:]
elif len(cols) != 5: continue
addr, _, sec, _, name = cols addr, _, sec, _, name = cols
if sec == '.text': if sec == '.text':
asmSymbs[name] = addr asmSymbs[name] = addr