DREAMWEB: Ported 'showSymbol' to C++

This commit is contained in:
Bertrand Augereau 2011-12-05 00:50:51 +01:00
parent 0f6f912992
commit 3e5eb3e4f6
5 changed files with 24 additions and 74 deletions

View File

@ -451,6 +451,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'showrightpage',
'showryanpage',
'showseconduse',
'showsymbol',
'showtime',
'showwatch',
'showword',

View File

@ -8877,79 +8877,6 @@ void DreamGenContext::dumpSymbol() {
multiDump();
}
void DreamGenContext::showSymbol() {
STACK_CHECK;
al = 12;
ah = 0;
di = (64);
bx = (56);
ds = data.word(kTempgraphics);
showFrame();
al = data.byte(kSymboltopx);
ah = 0;
di = ax;
_add(di, (64)-44);
al = data.byte(kSymboltopnum);
bx = (56)+20;
ds = data.word(kTempgraphics);
ah = 32;
push(ax);
push(di);
push(bx);
push(ds);
showFrame();
ds = pop();
bx = pop();
di = pop();
ax = pop();
nextSymbol();
_add(di, 49);
push(ax);
push(di);
push(bx);
push(ds);
showFrame();
ds = pop();
bx = pop();
di = pop();
ax = pop();
nextSymbol();
_add(di, 49);
showFrame();
al = data.byte(kSymbolbotx);
ah = 0;
di = ax;
_add(di, (64)-44);
al = data.byte(kSymbolbotnum);
_add(al, 6);
bx = (56)+49;
ds = data.word(kTempgraphics);
ah = 32;
push(ax);
push(di);
push(bx);
push(ds);
showFrame();
ds = pop();
bx = pop();
di = pop();
ax = pop();
nextSymbol();
_add(di, 49);
push(ax);
push(di);
push(bx);
push(ds);
showFrame();
ds = pop();
bx = pop();
di = pop();
ax = pop();
nextSymbol();
_add(di, 49);
showFrame();
}
void DreamGenContext::nextSymbol() {
STACK_CHECK;
_inc(al);

View File

@ -559,7 +559,6 @@ public:
void usePoolReader();
void useOpenBox();
void clearBuffers();
void showSymbol();
void getObTextStart();
void decide();
void getRidOfReels();

View File

@ -3120,6 +3120,28 @@ void DreamGenContext::readDestIcon() {
loadIntoTemp3("DREAMWEB.G08");
}
void DreamGenContext::showSymbol() {
showFrame(tempGraphics(), kSymbolx, kSymboly, 12, 0);
showFrame(tempGraphics(), data.byte(kSymboltopx) + kSymbolx-44, kSymboly+20, data.byte(kSymboltopnum), 32);
al = data.byte(kSymboltopnum);
nextSymbol();
uint8 nextTopSymbol = al;
showFrame(tempGraphics(), data.byte(kSymboltopx) + kSymbolx+5, kSymboly+20, nextTopSymbol, 32);
nextSymbol();
uint8 nextNextTopSymbol = al;
showFrame(tempGraphics(), data.byte(kSymboltopx) + kSymbolx+54, kSymboly+20, nextNextTopSymbol, 32);
showFrame(tempGraphics(), data.byte(kSymbolbotx) + kSymbolx-44, kSymboly+49, 6 + data.byte(kSymbolbotnum), 32);
al = data.byte(kSymbolbotnum);
nextSymbol();
uint8 nextBotSymbol = al;
showFrame(tempGraphics(), data.byte(kSymbolbotx) + kSymbolx+5, kSymboly+49, 6 + nextBotSymbol, 32);
nextSymbol();
uint8 nextNextBotSymbol = al;
showFrame(tempGraphics(), data.byte(kSymbolbotx) + kSymbolx+54, kSymboly+49, 6 + nextNextBotSymbol, 32);
}
void DreamGenContext::readKey() {
uint16 bufOut = data.word(kBufferout);

View File

@ -409,6 +409,7 @@
void loadKeypad();
void showKeypad();
void showOuterPad();
void showSymbol();
void showExit();
void showMan();
void panelIcons1();