Mercurial > repos > blastem
comparison cpu_dsl.py @ 2680:e3394457427e
Fix small bug in goto dispatch output of CPU dsl
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 26 Mar 2025 01:20:09 -0700 |
parents | 7e86ec94c899 |
children |
comparison
equal
deleted
inserted
replaced
2679:69c1093f8726 | 2680:e3394457427e |
---|---|
2269 body.append('\n\t{sync}(context, target_cycle);'.format(sync=self.sync_cycle)) | 2269 body.append('\n\t{sync}(context, target_cycle);'.format(sync=self.sync_cycle)) |
2270 body += self.nextInstruction(otype) | 2270 body += self.nextInstruction(otype) |
2271 pieces.append('\nunimplemented:') | 2271 pieces.append('\nunimplemented:') |
2272 if len(self.mainDispatch) == 1: | 2272 if len(self.mainDispatch) == 1: |
2273 dispatch = list(self.mainDispatch)[0] | 2273 dispatch = list(self.mainDispatch)[0] |
2274 body.append(f'\n\tfatal_error("Unimplemented instruction: %X\\n", {dispatch});') | 2274 pieces.append(f'\n\tfatal_error("Unimplemented instruction: %X\\n", {dispatch});') |
2275 else: | 2275 else: |
2276 body.append('\n\tfatal_error("Unimplemented instruction\\n");') | 2276 pieces.append('\n\tfatal_error("Unimplemented instruction\\n");') |
2277 pieces.append('\n}') | 2277 pieces.append('\n}') |
2278 return ''.join(body) + ''.join(pieces) | 2278 return ''.join(body) + ''.join(pieces) |
2279 | 2279 |
2280 def checkBool(self, name): | 2280 def checkBool(self, name): |
2281 if not name in self.booleans: | 2281 if not name in self.booleans: |