mirror of
https://github.com/elliotnunn/ToolboxToolbox.git
synced 2025-01-06 09:30:14 +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):
|
if search(r'LINK.W +A6', l):
|
||||||
firstline = i
|
firstline = i
|
||||||
leading_chars = m.start()
|
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
|
lastline = i
|
||||||
if name != 'NONAME' and firstline != -1:
|
if name != 'NONAME' and firstline != -1:
|
||||||
procedures.append((name, firstline, lastline))
|
procedures.append((name, firstline, lastline))
|
||||||
|
Loading…
Reference in New Issue
Block a user