mirror of
https://github.com/elliotnunn/ToolboxToolbox.git
synced 2025-01-02 14:29:25 +00:00
Be more stringent in finding functions
This commit is contained in:
parent
2502fe6df9
commit
8b59328410
@ -58,7 +58,13 @@ for i, l in enumerate(lines):
|
||||
if search(r'LINK.W +A6', l):
|
||||
firstline = i
|
||||
leading_chars = m.start()
|
||||
if search(r'\b(RTS|RTD|JMP)\b', l):
|
||||
|
||||
if firstline != -1 and match(r'^(\w+):', l) and not match(r'^[0-9A-Fa-f]+$', m.group(1)):
|
||||
name = 'NONAME'
|
||||
firstline = -1
|
||||
continue
|
||||
|
||||
if search(r'\b(RTS|RTD|JMP +\(A0\))\b', l):
|
||||
lastline = i
|
||||
if name != 'NONAME' and firstline != -1:
|
||||
procedures.append((name, firstline, lastline))
|
||||
|
Loading…
Reference in New Issue
Block a user