diff options
Diffstat (limited to 'src/devices/cpu/z80/z80make.py')
-rw-r--r-- | src/devices/cpu/z80/z80make.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/cpu/z80/z80make.py b/src/devices/cpu/z80/z80make.py index 023cdfd29ba..c1c75d12fb6 100644 --- a/src/devices/cpu/z80/z80make.py +++ b/src/devices/cpu/z80/z80make.py @@ -29,7 +29,7 @@ class IndStr: return not self.str def has_indent(self): - return self.indent != '' + return self.indent != '' or self.str[0] == "{" or self.str[0] == "}" def strip_indent(self, n): if self.indent != '': @@ -240,11 +240,11 @@ class OpcodeList: line_toc = line_toc[2:] line = " ".join(line_toc) for i in range(times): - if line_toc[0] == 'call': - name = line_toc[1] + if line_toc[0].startswith('@'): + name = line_toc[0][1:] arg = None - if len(line_toc) > 2: - arg = " ".join(line_toc[2:]) + if len(line_toc) > 1: + arg = " ".join(line_toc[1:]) if name in self.macros: macro = self.macros[name] ([out.extend(self.pre_process(il)) for il in macro.apply(arg)]) |