aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/dreamgen.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-12-03 21:15:40 +0100
committerWillem Jan Palenstijn2011-12-03 21:15:40 +0100
commit4aca1957125fafd8726ee0a6c19abbc23b7abc5d (patch)
treec1b830e3520ad399bbac74ddeaf02dd065ef8e92 /engines/dreamweb/dreamgen.cpp
parent5b3f8fab275f8ac59acba488a2e90d678389ad1c (diff)
downloadscummvm-rg350-4aca1957125fafd8726ee0a6c19abbc23b7abc5d.tar.gz
scummvm-rg350-4aca1957125fafd8726ee0a6c19abbc23b7abc5d.tar.bz2
scummvm-rg350-4aca1957125fafd8726ee0a6c19abbc23b7abc5d.zip
DREAMWEB: Clean up last remaining kFileheader/kFiledata usage
Diffstat (limited to 'engines/dreamweb/dreamgen.cpp')
-rw-r--r--engines/dreamweb/dreamgen.cpp78
1 files changed, 33 insertions, 45 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 354eeea44f..f089297df8 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -5273,14 +5273,14 @@ void DreamGenContext::getDestInfo() {
push(ax);
dx = data;
es = dx;
- si = 2625;
+ si = 2529;
_add(si, ax);
cl = es.byte(si);
ax = pop();
push(cx);
dx = data;
es = dx;
- si = 2641;
+ si = 2545;
_add(si, ax);
ax = pop();
}
@@ -5457,7 +5457,7 @@ clearedlocations:
bx = ax;
dx = data;
es = dx;
- _add(bx, 2625);
+ _add(bx, 2529);
es.byte(bx) = 0;
}
@@ -5572,7 +5572,7 @@ void DreamGenContext::delChar() {
si = data.word(kCurpos);
_add(si, si);
es = cs;
- _add(si, 2659);
+ _add(si, 2563);
es.byte(si) = 0;
al = es.byte(si+1);
ah = 0;
@@ -5599,7 +5599,7 @@ void DreamGenContext::execCommand() {
es = cs;
bx = offset_comlist;
ds = cs;
- si = 2659;
+ si = 2563;
al = ds.byte(si);
_cmp(al, 0);
if (!flags.z())
@@ -5794,7 +5794,7 @@ notyetassigned:
push(bx);
_add(bx, 2);
ds = cs;
- si = 2659;
+ si = 2563;
checkpass:
_lodsw();
ah = es.byte(bx);
@@ -6122,7 +6122,7 @@ void DreamGenContext::parser() {
al = '=';
_stosb();
ds = cs;
- si = 2659;
+ si = 2563;
notspace1:
_lodsw();
_cmp(al, 32);
@@ -9746,7 +9746,7 @@ void DreamGenContext::getNamePos() {
_mul(cx);
dx = data;
es = dx;
- bx = 2793;
+ bx = 2697;
_add(bx, ax);
al = data.byte(kCursorpos);
ah = 0;
@@ -9900,7 +9900,7 @@ void DreamGenContext::showNames() {
STACK_CHECK;
dx = data;
es = dx;
- si = 2793+1;
+ si = 2697+1;
di = (60)+21;
bx = (52)+10;
cl = 0;
@@ -10420,7 +10420,7 @@ void DreamGenContext::clearChanges() {
di = 0;
_stosw(cx, true);
es = cs;
- di = 2625;
+ di = 2529;
al = 1;
_stosb(2);
al = 0;
@@ -11518,64 +11518,52 @@ void DreamGenContext::__start() {
//0x09c0: .D:. .... .... ....
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
//0x09d0: .... .... .... ....
- 0x00, 0x44, 0x52, 0x45, 0x41, 0x4d, 0x57, 0x45, 0x42, 0x20, 0x44, 0x41, 0x54, 0x41, 0x20, 0x46,
- //0x09e0: .DRE AMWE B DA TA F
- 0x49, 0x4c, 0x45, 0x20, 0x43, 0x4f, 0x50, 0x59, 0x52, 0x49, 0x47, 0x48, 0x54, 0x20, 0x31, 0x39,
- //0x09f0: ILE COPY RIGH T 19
- 0x39, 0x32, 0x20, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x56, 0x45, 0x20, 0x52, 0x45, 0x41, 0x4c,
- //0x0a00: 92 C REAT IVE REAL
- 0x49, 0x54, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- //0x0a10: ITY. .... .... ....
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- //0x0a20: .... .... .... ....
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- //0x0a30: .... .... .... ....
0x00, 0x01, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- //0x0a40: .... .... .... ....
+ //0x09e0: .... .... .... ....
0x00, 0x05, 0x00, 0x03, 0x02, 0x04, 0x01, 0x0a, 0x09, 0x08, 0x06, 0x0b, 0x04, 0x07, 0x07, 0x00,
- //0x0a50: .... .... .... ....
+ //0x09f0: .... .... .... ....
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- //0x0a60: .... .... .... ....
+ //0x0a00: .... .... .... ....
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- //0x0a70: .... .... .... ....
+ //0x0a10: .... .... .... ....
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- //0x0a80: .... .... .... ....
+ //0x0a20: .... .... .... ....
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- //0x0a90: .... .... .... ....
+ //0x0a30: .... .... .... ....
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- //0x0aa0: .... .... .... ....
+ //0x0a40: .... .... .... ....
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- //0x0ab0: .... .... .... ....
+ //0x0a50: .... .... .... ....
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- //0x0ac0: .... .... .... ....
+ //0x0a60: .... .... .... ....
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- //0x0ad0: .... .... .... ....
+ //0x0a70: .... .... .... ....
0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x02, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01,
- //0x0ae0: .... .... .... ....
+ //0x0a80: .... .... .... ....
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x00, 0x01, 0x01, 0x01, 0x01,
- //0x0af0: .... .... .... ....
+ //0x0a90: .... .... .... ....
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x00, 0x01, 0x01, 0x01,
- //0x0b00: .... .... .... ....
+ //0x0aa0: .... .... .... ....
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x00, 0x01, 0x01,
- //0x0b10: .... .... .... ....
+ //0x0ab0: .... .... .... ....
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x00, 0x01,
- //0x0b20: .... .... .... ....
+ //0x0ac0: .... .... .... ....
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x00,
- //0x0b30: .... .... .... ....
+ //0x0ad0: .... .... .... ....
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02,
- //0x0b40: .... .... .... ....
+ //0x0ae0: .... .... .... ....
0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
- //0x0b50: .... .... .... ....
+ //0x0af0: .... .... .... ....
0x44, 0x52, 0x45, 0x41, 0x4d, 0x57, 0x45, 0x42, 0x2e, 0x44, 0x30, 0x30, 0x00, 0x44, 0x52, 0x45,
- //0x0b60: DREA MWEB .D00 .DRE
+ //0x0b00: DREA MWEB .D00 .DRE
0x41, 0x4d, 0x57, 0x45, 0x42, 0x2e, 0x44, 0x30, 0x31, 0x00, 0x44, 0x52, 0x45, 0x41, 0x4d, 0x57,
- //0x0b70: AMWE B.D0 1.DR EAMW
+ //0x0b10: AMWE B.D0 1.DR EAMW
0x45, 0x42, 0x2e, 0x44, 0x30, 0x32, 0x00, 0x44, 0x52, 0x45, 0x41, 0x4d, 0x57, 0x45, 0x42, 0x2e,
- //0x0b80: EB.D 02.D REAM WEB.
+ //0x0b20: EB.D 02.D REAM WEB.
0x44, 0x30, 0x33, 0x00, 0x44, 0x52, 0x45, 0x41, 0x4d, 0x57, 0x45, 0x42, 0x2e, 0x44, 0x30, 0x34,
- //0x0b90: D03. DREA MWEB .D04
+ //0x0b30: D03. DREA MWEB .D04
0x00, 0x44, 0x52, 0x45, 0x41, 0x4d, 0x57, 0x45, 0x42, 0x2e, 0x44, 0x30, 0x35, 0x00, 0x44, 0x52,
- //0x0ba0: .DRE AMWE B.D0 5.DR
+ //0x0b40: .DRE AMWE B.D0 5.DR
0x45, 0x41, 0x4d, 0x57, 0x45, 0x42, 0x2e, 0x44, 0x30, 0x36, 0x00, 0x00, 0x00, 0x00, };
ds.assign(src, src + sizeof(src));
dreamweb();