DREAMWEB: 'fillspace' ported to C++

This commit is contained in:
Bertrand Augereau 2011-07-30 22:56:29 +02:00
parent fa232d93b1
commit a4f05b36e4
5 changed files with 9 additions and 22 deletions

View File

@ -67,6 +67,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'initman',
'aboutturn',
'readheader',
'fillspace',
'getroomdata',
'startloading',
'showreelframe',

View File

@ -19575,23 +19575,6 @@ void DreamGenContext::allocateload() {
es = pop();
}
void DreamGenContext::fillspace() {
STACK_CHECK;
push(es);
push(ds);
push(dx);
push(di);
push(bx);
di = dx;
es = ds;
_stosb(cx, true);
bx = pop();
di = pop();
dx = pop();
ds = pop();
es = pop();
}
void DreamGenContext::getridoftemp() {
STACK_CHECK;
es = data.word(kTempgraphics);
@ -20934,7 +20917,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) {
case addr_findroominloc: findroominloc(); break;
case addr_dontloadseg: dontloadseg(); break;
case addr_allocateload: allocateload(); break;
case addr_fillspace: fillspace(); break;
case addr_getridoftemp: getridoftemp(); break;
case addr_getridoftemptext: getridoftemptext(); break;
case addr_getridoftemp2: getridoftemp2(); break;

View File

@ -57,7 +57,6 @@ public:
static const uint16 addr_getridoftemp2 = 0xcb78;
static const uint16 addr_getridoftemptext = 0xcb74;
static const uint16 addr_getridoftemp = 0xcb70;
static const uint16 addr_fillspace = 0xcb6c;
static const uint16 addr_allocateload = 0xcb68;
static const uint16 addr_dontloadseg = 0xcb64;
static const uint16 addr_findroominloc = 0xcb58;
@ -1373,6 +1372,7 @@ public:
//void worktoscreen();
void getexpos();
void fadedos();
//void fillspace();
//void multiget();
void fadeupmonfirst();
void drawfloor();
@ -1661,7 +1661,7 @@ public:
void steady();
void pixelcheckset();
void reexfrominv();
void fillspace();
void examinventory();
void talk();
void usedryer();
void dumpeverything();
@ -1873,7 +1873,6 @@ public:
void turnanypathon();
void restorereels();
void setwalk();
//void printboth();
void useroutine();
void zoomicon();
void hotelcontrol();
@ -2029,7 +2028,7 @@ public:
void scanfornames();
void setallchanges();
void newgame();
void examinventory();
//void printboth();
void standardload();
void undertextline();
void findroominloc();

View File

@ -798,5 +798,9 @@ void DreamGenContext::startloading(const Room *room) {
findxyfrompath();
}
void DreamGenContext::fillspace() {
memset(ds.ptr(dx, cx), al, cx);
}
} /*namespace dreamgen */

View File

@ -60,6 +60,7 @@
void getroomdata();
void getroomdata(uint8 roomIndex);
void readheader();
void fillspace();
void startloading();
void startloading(const Room *room);
Sprite *spritetable();