diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover index 7d02cfa064e3..1d7617dffa6f 100755 --- a/devtools/tasmrecover/tasm-recover +++ b/devtools/tasmrecover/tasm-recover @@ -241,6 +241,7 @@ generator = cpp(context, "DreamGen", blacklist = [ 'printcurs', 'delcurs', 'hangoncurs', + 'fadeupyellows', 'loadroomssample', ], skip_output = [ # These functions are processed but not output diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index edbc18435cd2..f7291bca1791 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -2769,25 +2769,6 @@ void DreamGenContext::fadeupmonfirst() { hangon(); } -void DreamGenContext::fadeupyellows() { - STACK_CHECK; - paltoendpal(); - es = data.word(kBuffers); - di = (0+(228*13)+32+60+(32*32)+(11*10*3)+768)+(231*3); - cx = 3*8; - ax = 0; - _stosb(cx, true); - di = (0+(228*13)+32+60+(32*32)+(11*10*3)+768)+(246*3); - _stosb(); - _stosw(); - data.byte(kFadedirection) = 1; - data.byte(kFadecount) = 63; - data.byte(kColourpos) = 0; - data.byte(kNumtofade) = 128; - cx = 128; - hangon(); -} - void DreamGenContext::initialmoncols() { STACK_CHECK; paltostartpal(); @@ -15503,7 +15484,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) { case addr_fadedownmon: fadedownmon(); break; case addr_fadeupmon: fadeupmon(); break; case addr_fadeupmonfirst: fadeupmonfirst(); break; - case addr_fadeupyellows: fadeupyellows(); break; case addr_initialmoncols: initialmoncols(); break; case addr_titles: titles(); break; case addr_endgame: endgame(); break; diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h index bfd83d72b63c..1d095b917057 100644 --- a/engines/dreamweb/dreamgen.h +++ b/engines/dreamweb/dreamgen.h @@ -474,7 +474,6 @@ class DreamGenContext : public Context { static const uint16 addr_endgame = 0xc2c4; static const uint16 addr_titles = 0xc2c0; static const uint16 addr_initialmoncols = 0xc2bc; - static const uint16 addr_fadeupyellows = 0xc2b8; static const uint16 addr_fadeupmonfirst = 0xc2b4; static const uint16 addr_fadeupmon = 0xc2b0; static const uint16 addr_fadedownmon = 0xc2ac; @@ -1309,7 +1308,7 @@ class DreamGenContext : public Context { //void showpanel(); void soundstartup(); void slabdoora(); - void fadeupyellows(); + //void fadeupyellows(); void slabdoorc(); void slabdoorb(); void slabdoore(); diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index f367486a6ea8..7aa5d7d919bc 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -292,4 +292,5 @@ void textforend(); void readsetdata(); void loadroomssample(); + void fadeupyellows(); diff --git a/engines/dreamweb/vgafades.cpp b/engines/dreamweb/vgafades.cpp index 10857d2b4499..ef0383199761 100644 --- a/engines/dreamweb/vgafades.cpp +++ b/engines/dreamweb/vgafades.cpp @@ -83,5 +83,16 @@ void DreamGenContext::fadecalculation() { --data.byte(kFadecount); } +void DreamGenContext::fadeupyellows() { + paltoendpal(); + memset(endPalette() + 231*3, 0, 8*3); + memset(endPalette() + 246*3, 0, 1*3); + data.byte(kFadedirection) = 1; + data.byte(kFadecount) = 63; + data.byte(kColourpos) = 0; + data.byte(kNumtofade) = 128; + hangon(128); +} + } /*namespace dreamgen */