aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
authorBertrand Augereau2011-07-23 18:32:48 +0200
committerBertrand Augereau2011-07-23 18:32:48 +0200
commit0066e4007a910a2f581018cc0b3a9fda94e41112 (patch)
treeda1d48e7c2c74719c6943fd7315965d25e00f74d /engines/dreamweb
parent08e407bbe5823110d6d821520bb883a7bb5f9e31 (diff)
downloadscummvm-rg350-0066e4007a910a2f581018cc0b3a9fda94e41112.tar.gz
scummvm-rg350-0066e4007a910a2f581018cc0b3a9fda94e41112.tar.bz2
scummvm-rg350-0066e4007a910a2f581018cc0b3a9fda94e41112.zip
DREAMWEB: Less register usage in 'printslow'
Diffstat (limited to 'engines/dreamweb')
-rw-r--r--engines/dreamweb/stubs.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index 45bc7b2bfa..72d0994657 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -334,7 +334,6 @@ uint8 DreamGenContext::printslow(uint16 x, uint16 y, uint8 maxWidth, bool center
data.byte(kPointermode) = 3;
ds = data.word(kCharset1);
do {
- push(di);
uint16 offset = x;
uint16 charCount = getnumber(si, maxWidth, centered, &offset);
do {
@@ -352,13 +351,10 @@ uint8 DreamGenContext::printslow(uint16 x, uint16 y, uint8 maxWidth, bool center
if ((c1 == 0) || (c1 == ':')) {
es = pop();
si = pop();
- di = pop();
return 0;
}
if (charCount != 1) {
- push(di);
push(ds);
- push(cx);
push(es);
c1 = engine->modifyChar(c1);
data.word(kCharshift) = 91;
@@ -366,9 +362,7 @@ uint8 DreamGenContext::printslow(uint16 x, uint16 y, uint8 maxWidth, bool center
printboth(es, ds, &offset2, y, c1);
data.word(kCharshift) = 0;
es = pop();
- cx = pop();
ds = pop();
- di = pop();
for (int i=0; i<2; ++i) {
waitframes();
if (ax == 0)
@@ -376,7 +370,6 @@ uint8 DreamGenContext::printslow(uint16 x, uint16 y, uint8 maxWidth, bool center
if (ax != data.word(kOldbutton)) {
es = pop();
si = pop();
- di = pop();
return 1;
}
}
@@ -387,7 +380,6 @@ uint8 DreamGenContext::printslow(uint16 x, uint16 y, uint8 maxWidth, bool center
++si;
--charCount;
} while (charCount);
- di = pop();
y += 10;
} while (true);
}