mirror of
https://github.com/elliotnunn/tbxi-patches.git
synced 2025-02-21 16:28:57 +00:00
Allow multiple instructions per line
Makes command line use easier
This commit is contained in:
parent
6bdba0df45
commit
200bc15b91
@ -46,6 +46,7 @@ def assemble(asm, return_labels=False):
|
||||
line = line.lower() # normalize case
|
||||
line = line.partition('#')[0] # strip comments
|
||||
|
||||
for line in line.split(';'):
|
||||
line_labels, line = re.match(r'^((?:\s*\w+:)*)(.*)', line).groups()
|
||||
|
||||
line_labels = re.findall(r'\w+', line_labels)
|
||||
|
Loading…
x
Reference in New Issue
Block a user