# HG changeset patch # User Michael Pavone # Date 1742977209 25200 # Node ID e3394457427ea5342acb485dab409275517f5dfb # Parent 69c1093f87263e7710e9a2ee2c97e224c146572f Fix small bug in goto dispatch output of CPU dsl diff -r 69c1093f8726 -r e3394457427e cpu_dsl.py --- a/cpu_dsl.py Wed Mar 26 01:17:04 2025 -0700 +++ b/cpu_dsl.py Wed Mar 26 01:20:09 2025 -0700 @@ -2271,9 +2271,9 @@ pieces.append('\nunimplemented:') if len(self.mainDispatch) == 1: dispatch = list(self.mainDispatch)[0] - body.append(f'\n\tfatal_error("Unimplemented instruction: %X\\n", {dispatch});') + pieces.append(f'\n\tfatal_error("Unimplemented instruction: %X\\n", {dispatch});') else: - body.append('\n\tfatal_error("Unimplemented instruction\\n");') + pieces.append('\n\tfatal_error("Unimplemented instruction\\n");') pieces.append('\n}') return ''.join(body) + ''.join(pieces)