diff options
author | Vladimir | 2011-06-07 00:53:47 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:30:29 +0200 |
commit | 1ee6b0af692d0dc478ad50ec32c8a7144c40ee40 (patch) | |
tree | 967a1bcea0f737bb2882b3c8e91805729e790aed /devtools/tasmrecover | |
parent | 781d06709f4e5dbc0812c285248a08452f9f7005 (diff) | |
download | scummvm-rg350-1ee6b0af692d0dc478ad50ec32c8a7144c40ee40.tar.gz scummvm-rg350-1ee6b0af692d0dc478ad50ec32c8a7144c40ee40.tar.bz2 scummvm-rg350-1ee6b0af692d0dc478ad50ec32c8a7144c40ee40.zip |
DREAMWEB: get rid of data, added simple segment management
Diffstat (limited to 'devtools/tasmrecover')
-rw-r--r-- | devtools/tasmrecover/tasm/cpp.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/devtools/tasmrecover/tasm/cpp.py b/devtools/tasmrecover/tasm/cpp.py index d63f568d78..f9afe48fd8 100644 --- a/devtools/tasmrecover/tasm/cpp.py +++ b/devtools/tasmrecover/tasm/cpp.py @@ -63,7 +63,7 @@ namespace %s { if size == 0: raise Exception("invalid var '%s' size %u" %(name, size)) if self.indirection == 0: - value = "context.data.%s(%d)" %("byte" if size == 1 else "word", g.offset) + value = "context.ds.%s(%d)" %("byte" if size == 1 else "word", g.offset) elif self.indirection == -1: value = "%s" %g.offset self.indirection = 0 @@ -161,9 +161,9 @@ namespace %s { if indirection == 1: if size == 1: - expr = "context.data.byte(%s)" %expr + expr = "context.ds.byte(%s)" %expr elif size == 2: - expr = "context.data.word(%s)" %expr + expr = "context.ds.word(%s)" %expr else: expr = "@invalid size 0" elif indirection == 0: @@ -505,7 +505,7 @@ namespace %s { n += 1 if (n & 0xf) == 0: data_impl += "\n\t\t" - data_impl += "};\n\tcontext.data.assign(src, src + sizeof(src))" + data_impl += "};\n\tcontext.ds.assign(src, src + sizeof(src))" hid = "TASMRECOVER_%s_STUBS_H__" %self.namespace.upper() self.hd.write("""#ifndef %s #define %s |