diff options
author | Vladimir | 2011-06-07 02:45:48 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:31:17 +0200 |
commit | 40c02f2f7ff999ee1b07306604607cb2ff3e12e5 (patch) | |
tree | 3c59252b5f6176f9d11ace7e049373e1d1321ce0 | |
parent | e94a8299aa2aa6dec189232f2db8a340e588c228 (diff) | |
download | scummvm-rg350-40c02f2f7ff999ee1b07306604607cb2ff3e12e5.tar.gz scummvm-rg350-40c02f2f7ff999ee1b07306604607cb2ff3e12e5.tar.bz2 scummvm-rg350-40c02f2f7ff999ee1b07306604607cb2ff3e12e5.zip |
DREAMWEB: replaced seecommandtail with stub
-rwxr-xr-x | devtools/tasmrecover/tasm-recover | 2 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 51 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.h | 1 | ||||
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 10 |
4 files changed, 12 insertions, 52 deletions
diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover index c4214b205a..159acacca4 100755 --- a/devtools/tasmrecover/tasm-recover +++ b/devtools/tasmrecover/tasm-recover @@ -7,5 +7,5 @@ p = parser() p.strip_path = 3 context = p.parse('dreamweb/dreamweb.asm') p.link() -generator = cpp(context, "dreamgen", blacklist = ['randomnumber', 'quickquit', 'quickquit2']) +generator = cpp(context, "dreamgen", blacklist = ['randomnumber', 'quickquit', 'quickquit2', 'seecommandtail']) generator.generate('dreamweb') #start routine diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index cb94596a49..bf996f8353 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -2,7 +2,6 @@ namespace dreamgen { -static void seecommandtail(Context &context); static void checkbasemem(Context &context); static void allocatebuffers(Context &context); static void clearbuffers(Context &context); @@ -145,7 +144,6 @@ static void dumptimedtext(Context &context); static void readmouse4(Context &context); static void dumpwatch(Context &context); static void fadescreenup(Context &context); -static void parseblaster(Context &context); static void clearreels(Context &context); static void clearrest(Context &context); static void trysoundalloc(Context &context); @@ -17455,54 +17453,6 @@ static void clearrest(Context & context) { return; } -static void seecommandtail(Context & context) { - context.ds.word(372) = 0x220; - context.ds.byte(378) = 5; - context.ds.byte(379) = 1; - context.ds.byte(73) = 0; - context.bx = 2; - context.ax = context.ds.word(context.bx); - context.dx = context.es; - context._sub(context.ax, context.dx); - context.ds.word(534) = context.ax; - context.bx = 0x02c; - context.ax = context.ds.word(context.bx); - context.push(context.es); - context.push(context.bx); - context.es = context.ax; - context.bx = 0; -findblaster: - context.ax = context.ds.word(context.bx); - context._cmp(context.ax, 0); - if (context.flags.z()) goto endofenvironment; - context._cmp(context.al, 'B'); - if (!context.flags.z()) goto notblast; - context._cmp(context.ah, 'L'); - if (!context.flags.z()) goto notblast; - context._cmp(context.ds.byte(context.bx+2), 'A'); - if (!context.flags.z()) goto notblast; - context._cmp(context.ds.byte(context.bx+3), 'S'); - if (!context.flags.z()) goto notblast; - context._cmp(context.ds.byte(context.bx+4), 'T'); - if (!context.flags.z()) goto notblast; - context._cmp(context.ds.byte(context.bx+5), 'E'); - if (!context.flags.z()) goto notblast; - context._cmp(context.ds.byte(context.bx+6), 'R'); - if (!context.flags.z()) goto notblast; - context._add(context.bx, 7); - parseblaster(context); - goto endofenvironment; -notblast: - context._add(context.bx, 1); - goto findblaster; -endofenvironment: - context.bx = context.pop(); - context.es = context.pop(); - context.bx = 0x81; - parseblaster(context); - return; -} - static void parseblaster(Context & context) { lookattail: context.al = context.ds.byte(context.bx); @@ -22043,7 +21993,6 @@ void __dispatch_call(Context &context, unsigned addr) { case 0xc97c: clearrest(context); break; case 0xc980: deallocatemem(context); break; case 0xc984: allocatemem(context); break; - case 0xc988: seecommandtail(context); break; case 0xc98c: parseblaster(context); break; case 0xc990: startup(context); break; case 0xc994: startup1(context); break; diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h index c82d9f83b1..3696c957e2 100644 --- a/engines/dreamweb/dreamgen.h +++ b/engines/dreamweb/dreamgen.h @@ -11,6 +11,7 @@ namespace dreamgen { void randomnumber(Context &context); void quickquit(Context &context); void quickquit2(Context &context); + void seecommandtail(Context &context); void keyboardread(Context &context); void resetkeyboard(Context &context); void setkeyboardint(Context &context); diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp index 8c6b3ce3fb..c25ee6a6ba 100644 --- a/engines/dreamweb/dreamweb.cpp +++ b/engines/dreamweb/dreamweb.cpp @@ -136,15 +136,25 @@ Common::Error DreamWebEngine::run() { namespace dreamgen { +void seecommandtail(Context &context) { + context.ds.word(kSoundbaseadd) = 0x220; + context.ds.byte(kSoundint) = 5; + context.ds.byte(kSounddmachannel) = 1; + context.ds.byte(kBrightness) = 1; + context.ds.word(kHowmuchalloc) = 0x9360; +} + void randomnumber(Context &context) { ::error("randomnumber"); } void quickquit(Context &context) { + assert(0); ::error("quickquit"); } void quickquit2(Context &context) { + assert(0); ::error("quickquit2"); } |