aboutsummaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-10 03:19:58 +0400
committerAlyssa Milburn2011-06-15 17:33:54 +0200
commit97310ab904eea1a80c2b2235e0a31a01f1fbaaae (patch)
tree028d5ccb710379de4c7e04bffe253c8957ae3f03 /devtools
parent9b761735734356cb3f24f4d80e95ecc2f912020c (diff)
downloadscummvm-rg350-97310ab904eea1a80c2b2235e0a31a01f1fbaaae.tar.gz
scummvm-rg350-97310ab904eea1a80c2b2235e0a31a01f1fbaaae.tar.bz2
scummvm-rg350-97310ab904eea1a80c2b2235e0a31a01f1fbaaae.zip
DREAMWEB: asserted invalid calls
Diffstat (limited to 'devtools')
-rw-r--r--devtools/tasmrecover/tasm/cpp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/devtools/tasmrecover/tasm/cpp.py b/devtools/tasmrecover/tasm/cpp.py
index e94231f043..3caf21e6cf 100644
--- a/devtools/tasmrecover/tasm/cpp.py
+++ b/devtools/tasmrecover/tasm/cpp.py
@@ -564,6 +564,7 @@ namespace %s {
self.proc_addr.sort(cmp = lambda x, y: x[1] - y[1])
for name,addr in self.proc_addr:
self.fd.write("\t\tcase 0x%04x: %s(context); break;\n" %(addr, name))
+ self.fd.write("\t\tdefault: ::error(\"invalid call to %04x dispatched\", (uint16)context.ax);")
self.fd.write("\n\t}\n}\n\n} /*namespace*/\n")
self.fd.close()