Emily's Z80 assembler for the Gameboy.
修订版 | fa51a4d3dcbe63ea293628f31495525002ec51b9 (tree) |
---|---|
时间 | 2021-03-02 17:08:53 |
作者 | AlaskanEmily <emily@alas...> |
Commiter | AlaskanEmily |
Report errors for included files
@@ -727,8 +727,13 @@ def assemble(block, mnemonic, operands=()): | ||
727 | 727 | block.error("Recursive include of " + o) |
728 | 728 | else: |
729 | 729 | included_names.add(o) |
730 | - assembleFile(block, o) | |
731 | - included_names.remove(o) | |
730 | + try: | |
731 | + assembleFile(block, o) | |
732 | + except Error: | |
733 | + print("Error in " + o) | |
734 | + raise | |
735 | + finally: | |
736 | + included_names.remove(o) | |
732 | 737 | return |
733 | 738 | |
734 | 739 | if mnemonic[0] == '!': |