diff options
author | 2015-03-05 16:44:01 +0100 | |
---|---|---|
committer | 2015-03-05 16:44:01 +0100 | |
commit | 57fd44091ac557add4ab54737f4b99146f0329c2 (patch) | |
tree | b4463037b337392e78e5ab5aed11860fd9d0c288 /src/emu/cpu/h8/h8make.py | |
parent | 56642192d78f49cf084e1ac3cd6caa49ba68f75b (diff) |
fixed some apparent bugs in Python scripts based on PyCharm inspection (nw)
Diffstat (limited to 'src/emu/cpu/h8/h8make.py')
-rw-r--r-- | src/emu/cpu/h8/h8make.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/cpu/h8/h8make.py b/src/emu/cpu/h8/h8make.py index 35cda51b86d..8328ddb56b1 100644 --- a/src/emu/cpu/h8/h8make.py +++ b/src/emu/cpu/h8/h8make.py @@ -222,8 +222,8 @@ class Macro: values.append(lval) for i in range(0, len(self.source)): line = self.source[i] - for i in range(0, len(self.params)): - line = line.replace(self.params[i], values[i]) + for j in range(0, len(self.params)): + line = line.replace(self.params[j], values[j]) target.add_source_line(line) class DispatchStep: @@ -275,7 +275,7 @@ class OpcodeList: if not line: continue if line.startswith(" ") or line.startswith("\t"): - if inf != None: + if inf is not None: # append instruction to last opcode, maybe expand a macro tokens = line.split() if tokens[0] in self.macros: |