URL
https://opencores.org/ocsvn/ssbcc/ssbcc/trunk
[/] [ssbcc/] [trunk/] [core/] [9x8/] [asmDef.py] - Diff between revs 6 and 9
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 6 |
Rev 9 |
Line 399... |
Line 399... |
raise AsmException('Macro "%s" not allowed at %s:%d' % (b.group(0),fl_loc,col+1,));
|
raise AsmException('Macro "%s" not allowed at %s:%d' % (b.group(0),fl_loc,col+1,));
|
macroArgs = list();
|
macroArgs = list();
|
if len(b.group(0)) == len(raw):
|
if len(b.group(0)) == len(raw):
|
pass;
|
pass;
|
elif (raw[len(b.group(0))] != '(') or (raw[-1] != ')'):
|
elif (raw[len(b.group(0))] != '(') or (raw[-1] != ')'):
|
raise AsmException('Malformed macro invokaction "%" at %s:%d' % (raw,fl_loc,col+1,));
|
raise AsmException('Malformed macro invokaction "%s" at %s:%d' % (raw,fl_loc,col+1,));
|
else:
|
else:
|
tcol = len(b.group(0))+1;
|
tcol = len(b.group(0))+1;
|
while tcol < len(raw):
|
while tcol < len(raw):
|
c = re.match(r'[^,(]*(\([^)]*\))?',raw[tcol:-1]);
|
c = re.match(r'[^,(]*(\([^)]*\))?',raw[tcol:-1]);
|
macroArgs.append(c.group(0));
|
macroArgs.append(c.group(0));
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.