mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 07:23:05 +00:00
DREAMWEB: Move 'loadroomssample' from dreamgen
This commit is contained in:
parent
bab4b6f729
commit
80092965c7
@ -229,6 +229,7 @@ generator = cpp(context, "DreamGen", blacklist = [
|
||||
'textforend',
|
||||
'textformonk',
|
||||
'twodigitnum',
|
||||
'loadroomssample',
|
||||
], skip_output = [
|
||||
# These functions are processed but not output
|
||||
'dreamweb',
|
||||
|
@ -14208,26 +14208,6 @@ void DreamGenContext::loadtemptext() {
|
||||
data.word(kTextfile1) = ax;
|
||||
}
|
||||
|
||||
void DreamGenContext::loadroomssample() {
|
||||
STACK_CHECK;
|
||||
al = data.byte(kRoomssample);
|
||||
_cmp(al, 255);
|
||||
if (flags.z())
|
||||
return /* (loadedalready) */;
|
||||
_cmp(al, data.byte(kCurrentsample));
|
||||
if (flags.z())
|
||||
return /* (loadedalready) */;
|
||||
data.byte(kCurrentsample) = al;
|
||||
al = data.byte(kCurrentsample);
|
||||
cl = '0';
|
||||
twodigitnum();
|
||||
di = 1896;
|
||||
_xchg(al, ah);
|
||||
cs.word(di+10) = ax;
|
||||
dx = di;
|
||||
loadsecondsample();
|
||||
}
|
||||
|
||||
void DreamGenContext::getridofreels() {
|
||||
STACK_CHECK;
|
||||
_cmp(data.byte(kRoomloaded), 0);
|
||||
@ -16188,7 +16168,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) {
|
||||
case addr_loadtempcharset: loadtempcharset(); break;
|
||||
case addr_standardload: standardload(); break;
|
||||
case addr_loadtemptext: loadtemptext(); break;
|
||||
case addr_loadroomssample: loadroomssample(); break;
|
||||
case addr_getridofreels: getridofreels(); break;
|
||||
case addr_getridofall: getridofall(); break;
|
||||
case addr_restorereels: restorereels(); break;
|
||||
|
@ -64,7 +64,6 @@ public:
|
||||
static const uint16 addr_restorereels = 0xcb40;
|
||||
static const uint16 addr_getridofall = 0xcb3c;
|
||||
static const uint16 addr_getridofreels = 0xcb38;
|
||||
static const uint16 addr_loadroomssample = 0xcb34;
|
||||
static const uint16 addr_loadtemptext = 0xcb2c;
|
||||
static const uint16 addr_standardload = 0xcb28;
|
||||
static const uint16 addr_loadtempcharset = 0xcb24;
|
||||
@ -1342,7 +1341,7 @@ public:
|
||||
void bartender();
|
||||
void eden();
|
||||
void showdiary();
|
||||
void purgealocation();
|
||||
//void loadroomssample();
|
||||
//void updatepeople();
|
||||
//void addtopeoplelist();
|
||||
void hangoncurs();
|
||||
@ -1593,7 +1592,7 @@ public:
|
||||
void enablesoundint();
|
||||
void madmanstelly();
|
||||
void constant();
|
||||
void loadroomssample();
|
||||
void purgealocation();
|
||||
void sparkydrip();
|
||||
//void paltostartpal();
|
||||
void bossman();
|
||||
|
@ -2054,5 +2054,25 @@ void DreamGenContext::twodigitnum() {
|
||||
al = digit2;
|
||||
}
|
||||
|
||||
void DreamGenContext::loadroomssample() {
|
||||
STACK_CHECK;
|
||||
al = data.byte(kRoomssample);
|
||||
_cmp(al, 255);
|
||||
if (flags.z())
|
||||
return /* (loadedalready) */;
|
||||
_cmp(al, data.byte(kCurrentsample));
|
||||
if (flags.z())
|
||||
return /* (loadedalready) */;
|
||||
data.byte(kCurrentsample) = al;
|
||||
al = data.byte(kCurrentsample);
|
||||
cl = '0';
|
||||
twodigitnum();
|
||||
di = 1896;
|
||||
_xchg(al, ah);
|
||||
cs.word(di+10) = ax;
|
||||
dx = di;
|
||||
loadsecondsample();
|
||||
}
|
||||
|
||||
} /*namespace dreamgen */
|
||||
|
||||
|
@ -275,4 +275,5 @@
|
||||
void textforend();
|
||||
void twodigitnum(uint8 num, uint8 baseChar, uint8 *digit1, uint8 *digit2);
|
||||
void twodigitnum();
|
||||
void loadroomssample();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user