scummvm/engines/dreamweb/dreamgen.h
2011-06-15 17:31:17 +02:00

550 lines
21 KiB
C++

#ifndef TASMRECOVER_DREAMGEN_STUBS_H__
#define TASMRECOVER_DREAMGEN_STUBS_H__
# include "runtime.h"
namespace dreamgen {
void __dispatch_call(Context &context, unsigned addr);
void __start(Context &context);
void randomnumber(Context &context);
void quickquit(Context &context);
void quickquit2(Context &context);
void seecommandtail(Context &context);
void keyboardread(Context &context);
void resetkeyboard(Context &context);
void setkeyboardint(Context &context);
void readfromfile(Context &context);
void closefile(Context &context);
void openforsave(Context &context);
void openfilenocheck(Context &context);
void openfile(Context &context);
void createfile(Context &context);
void dontloadseg(Context &context);
void mousecall(Context &context);
void setmouse(Context &context);
void gettime(Context &context);
void allocatemem(Context &context);
void deallocatemem(Context &context);
void removeemm(Context &context);
void setupemm(Context &context);
void pitinterupt(Context &context);
void getridofpit(Context &context);
void setuppit(Context &context);
void startdmablock(Context &context);
void dmaend(Context &context);
void restoreems(Context &context);
void saveems(Context &context);
void bothchannels(Context &context);
void channel1only(Context &context);
void channel0only(Context &context);
void out22c(Context &context);
void soundend(Context &context);
void interupttest(Context &context);
void disablesoundint(Context &context);
void enablesoundint(Context &context);
void checksoundint(Context &context);
void setsoundoff(Context &context);
void soundstartup(Context &context);
void loadsecondsample(Context &context);
void loadsample(Context &context);
void loadspeech(Context &context);
void scanfornames(Context &context);
void saveseg(Context &context);
void loadseg(Context &context);
void loadposition(Context &context);
void saveposition(Context &context);
void error(Context &context);
void generalerror(Context &context);
void dosreturn(Context &context);
void set16colpalette(Context &context);
void mode640x480(Context &context);
void showgroup(Context &context);
void fadedos(Context &context);
void doshake(Context &context);
void vsync(Context &context);
void setmode(Context &context);
void readoneblock(Context &context);
void showpcx(Context &context);
const static uint16 kStartvars = 1;
const static uint16 kProgresspoints = 2;
const static uint16 kWatchon = 3;
const static uint16 kShadeson = 4;
const static uint16 kSecondcount = 5;
const static uint16 kMinutecount = 6;
const static uint16 kHourcount = 7;
const static uint16 kZoomon = 8;
const static uint16 kLocation = 9;
const static uint16 kExpos = 10;
const static uint16 kExframepos = 12;
const static uint16 kExtextpos = 14;
const static uint16 kCard1money = 16;
const static uint16 kListpos = 18;
const static uint16 kRyanpage = 19;
const static uint16 kWatchingtime = 21;
const static uint16 kReeltowatch = 23;
const static uint16 kEndwatchreel = 25;
const static uint16 kSpeedcount = 26;
const static uint16 kWatchspeed = 27;
const static uint16 kReeltohold = 29;
const static uint16 kEndofholdreel = 31;
const static uint16 kWatchmode = 32;
const static uint16 kDestafterhold = 33;
const static uint16 kNewsitem = 34;
const static uint16 kLiftflag = 35;
const static uint16 kLiftpath = 36;
const static uint16 kLockstatus = 37;
const static uint16 kDoorpath = 38;
const static uint16 kCounttoopen = 39;
const static uint16 kCounttoclose = 40;
const static uint16 kRockstardead = 41;
const static uint16 kGeneraldead = 42;
const static uint16 kSartaindead = 43;
const static uint16 kAidedead = 44;
const static uint16 kBeenmugged = 45;
const static uint16 kGunpassflag = 46;
const static uint16 kCanmovealtar = 47;
const static uint16 kTalkedtoattendant = 48;
const static uint16 kTalkedtosparky = 49;
const static uint16 kTalkedtoboss = 50;
const static uint16 kTalkedtorecep = 51;
const static uint16 kCardpassflag = 52;
const static uint16 kMadmanflag = 53;
const static uint16 kKeeperflag = 54;
const static uint16 kLasttrigger = 55;
const static uint16 kMandead = 56;
const static uint16 kSeed = 59;
const static uint16 kNeedtotravel = 60;
const static uint16 kThroughdoor = 61;
const static uint16 kNewobs = 62;
const static uint16 kRyanon = 63;
const static uint16 kCombatcount = 64;
const static uint16 kLastweapon = 65;
const static uint16 kDreamnumber = 66;
const static uint16 kRoomafterdream = 67;
const static uint16 kShakecounter = 68;
const static uint16 kSpeechcount = 69;
const static uint16 kCharshift = 71;
const static uint16 kKerning = 72;
const static uint16 kBrightness = 73;
const static uint16 kRoomloaded = 74;
const static uint16 kDidzoom = 75;
const static uint16 kLinespacing = 77;
const static uint16 kTextaddressx = 79;
const static uint16 kTextaddressy = 81;
const static uint16 kTextlen = 82;
const static uint16 kLastxpos = 84;
const static uint16 kIcontop = 86;
const static uint16 kIconleft = 88;
const static uint16 kItemframe = 89;
const static uint16 kItemtotran = 90;
const static uint16 kRoomad = 92;
const static uint16 kOldsubject = 94;
const static uint16 kWithobject = 95;
const static uint16 kWithtype = 96;
const static uint16 kLookcounter = 98;
const static uint16 kCommand = 99;
const static uint16 kCommandtype = 100;
const static uint16 kOldcommandtype = 101;
const static uint16 kObjecttype = 102;
const static uint16 kGetback = 103;
const static uint16 kInvopen = 104;
const static uint16 kMainmode = 105;
const static uint16 kPickup = 106;
const static uint16 kLastinvpos = 107;
const static uint16 kExamagain = 108;
const static uint16 kNewtextline = 109;
const static uint16 kOpenedob = 110;
const static uint16 kOpenedtype = 111;
const static uint16 kOldmapadx = 113;
const static uint16 kOldmapady = 115;
const static uint16 kMapadx = 117;
const static uint16 kMapady = 119;
const static uint16 kMapoffsetx = 121;
const static uint16 kMapoffsety = 123;
const static uint16 kMapxstart = 125;
const static uint16 kMapystart = 127;
const static uint16 kMapxsize = 128;
const static uint16 kMapysize = 129;
const static uint16 kHavedoneobs = 130;
const static uint16 kManisoffscreen = 131;
const static uint16 kRainspace = 132;
const static uint16 kFacing = 133;
const static uint16 kLeavedirection = 134;
const static uint16 kTurntoface = 135;
const static uint16 kTurndirection = 136;
const static uint16 kMaintimer = 138;
const static uint16 kIntrocount = 139;
const static uint16 kArrowad = 141;
const static uint16 kCurrentkey = 142;
const static uint16 kOldkey = 143;
const static uint16 kUseddirection = 144;
const static uint16 kCurrentkey2 = 145;
const static uint16 kTimercount = 146;
const static uint16 kOldtimercount = 147;
const static uint16 kMapx = 148;
const static uint16 kMapy = 149;
const static uint16 kNewscreen = 150;
const static uint16 kRyanx = 151;
const static uint16 kRyany = 152;
const static uint16 kLastflag = 153;
const static uint16 kLastflagex = 154;
const static uint16 kFlagx = 155;
const static uint16 kFlagy = 156;
const static uint16 kCurrentex = 157;
const static uint16 kCurrentfree = 158;
const static uint16 kCurrentframe = 160;
const static uint16 kFramesad = 162;
const static uint16 kDataad = 164;
const static uint16 kFrsegment = 166;
const static uint16 kObjectx = 168;
const static uint16 kObjecty = 170;
const static uint16 kOffsetx = 172;
const static uint16 kOffsety = 174;
const static uint16 kSavesize = 176;
const static uint16 kSavesource = 178;
const static uint16 kSavex = 179;
const static uint16 kSavey = 180;
const static uint16 kCurrentob = 181;
const static uint16 kPriority = 182;
const static uint16 kDestpos = 183;
const static uint16 kReallocation = 184;
const static uint16 kRoomnum = 185;
const static uint16 kNowinnewroom = 186;
const static uint16 kResetmanxy = 187;
const static uint16 kNewlocation = 188;
const static uint16 kAutolocation = 189;
const static uint16 kMustload = 190;
const static uint16 kAnswered = 191;
const static uint16 kSaidno = 192;
const static uint16 kDoorcheck1 = 193;
const static uint16 kDoorcheck2 = 194;
const static uint16 kDoorcheck3 = 195;
const static uint16 kDoorcheck4 = 196;
const static uint16 kMousex = 198;
const static uint16 kMousey = 200;
const static uint16 kMousebutton = 202;
const static uint16 kMousebutton1 = 204;
const static uint16 kMousebutton2 = 206;
const static uint16 kMousebutton3 = 208;
const static uint16 kMousebutton4 = 210;
const static uint16 kOldbutton = 212;
const static uint16 kOldx = 214;
const static uint16 kOldy = 216;
const static uint16 kLastbutton = 218;
const static uint16 kOldpointerx = 220;
const static uint16 kOldpointery = 222;
const static uint16 kDelherex = 224;
const static uint16 kDelherey = 226;
const static uint16 kPointerxs = 227;
const static uint16 kPointerys = 228;
const static uint16 kDelxs = 229;
const static uint16 kDelys = 230;
const static uint16 kPointerframe = 231;
const static uint16 kPointerpower = 232;
const static uint16 kAuxpointerframe = 233;
const static uint16 kPointermode = 234;
const static uint16 kPointerspeed = 235;
const static uint16 kPointercount = 236;
const static uint16 kInmaparea = 237;
const static uint16 kReelpointer = 239;
const static uint16 kSlotdata = 240;
const static uint16 kThisslot = 241;
const static uint16 kSlotflags = 242;
const static uint16 kTakeoff = 244;
const static uint16 kTalkmode = 245;
const static uint16 kTalkpos = 246;
const static uint16 kCharacter = 247;
const static uint16 kPersondata = 249;
const static uint16 kTalknum = 250;
const static uint16 kNumberinroom = 251;
const static uint16 kCurrentcel = 252;
const static uint16 kOldselection = 253;
const static uint16 kStopwalking = 254;
const static uint16 kMouseon = 255;
const static uint16 kPlayed = 257;
const static uint16 kTimer1 = 258;
const static uint16 kTimer2 = 259;
const static uint16 kTimer3 = 260;
const static uint16 kWholetimer = 262;
const static uint16 kTimer1to = 263;
const static uint16 kTimer2to = 264;
const static uint16 kTimer3to = 265;
const static uint16 kWatchdump = 266;
const static uint16 kCurrentset = 268;
const static uint16 kLogonum = 269;
const static uint16 kOldlogonum = 270;
const static uint16 kNewlogonum = 271;
const static uint16 kNetseg = 273;
const static uint16 kNetpoint = 275;
const static uint16 kKeynum = 276;
const static uint16 kCursorstate = 277;
const static uint16 kPressed = 278;
const static uint16 kPresspointer = 280;
const static uint16 kGraphicpress = 281;
const static uint16 kPresscount = 282;
const static uint16 kKeypadax = 284;
const static uint16 kKeypadcx = 286;
const static uint16 kLightcount = 287;
const static uint16 kFolderpage = 288;
const static uint16 kDiarypage = 289;
const static uint16 kMenucount = 290;
const static uint16 kSymboltopx = 291;
const static uint16 kSymboltopnum = 292;
const static uint16 kSymboltopdir = 293;
const static uint16 kSymbolbotx = 294;
const static uint16 kSymbolbotnum = 295;
const static uint16 kSymbolbotdir = 296;
const static uint16 kSymboltolight = 297;
const static uint16 kSymbol1 = 298;
const static uint16 kSymbol2 = 299;
const static uint16 kSymbol3 = 300;
const static uint16 kSymbolnum = 301;
const static uint16 kDumpx = 303;
const static uint16 kDumpy = 305;
const static uint16 kWalkandexam = 306;
const static uint16 kWalkexamtype = 307;
const static uint16 kWalkexamnum = 308;
const static uint16 kCursloc = 310;
const static uint16 kCurslocx = 312;
const static uint16 kCurslocy = 314;
const static uint16 kCurpos = 316;
const static uint16 kMonadx = 318;
const static uint16 kMonady = 320;
const static uint16 kGotfrom = 322;
const static uint16 kMonsource = 324;
const static uint16 kNumtodo = 326;
const static uint16 kTimecount = 328;
const static uint16 kCounttotimed = 330;
const static uint16 kTimedseg = 332;
const static uint16 kTimedoffset = 334;
const static uint16 kTimedy = 335;
const static uint16 kTimedx = 336;
const static uint16 kNeedtodumptimed = 337;
const static uint16 kHandle = 339;
const static uint16 kLoadingorsave = 340;
const static uint16 kCurrentslot = 341;
const static uint16 kCursorpos = 342;
const static uint16 kColourpos = 343;
const static uint16 kFadedirection = 344;
const static uint16 kNumtofade = 345;
const static uint16 kFadecount = 346;
const static uint16 kAddtogreen = 347;
const static uint16 kAddtored = 348;
const static uint16 kAddtoblue = 349;
const static uint16 kLastsoundreel = 351;
const static uint16 kSoundbuffer = 353;
const static uint16 kSoundbufferad = 355;
const static uint16 kSoundbufferpage = 356;
const static uint16 kSoundtimes = 357;
const static uint16 kNeedsoundbuff = 358;
const static uint16 kOldint9seg = 360;
const static uint16 kOldint9add = 362;
const static uint16 kOldint8seg = 364;
const static uint16 kOldint8add = 366;
const static uint16 kOldsoundintseg = 368;
const static uint16 kOldsoundintadd = 370;
const static uint16 kSoundbaseadd = 372;
const static uint16 kDsp_status = 374;
const static uint16 kDsp_write = 376;
const static uint16 kDmaaddress = 377;
const static uint16 kSoundint = 378;
const static uint16 kSounddmachannel = 379;
const static uint16 kSampleplaying = 380;
const static uint16 kTestresult = 381;
const static uint16 kCurrentirq = 382;
const static uint16 kSpeechloaded = 383;
const static uint16 kSpeechlength = 385;
const static uint16 kVolume = 386;
const static uint16 kVolumeto = 387;
const static uint16 kVolumedirection = 388;
const static uint16 kVolumecount = 389;
const static uint16 kPlayblock = 390;
const static uint16 kWongame = 391;
const static uint16 kLasthardkey = 392;
const static uint16 kBufferin = 394;
const static uint16 kBufferout = 396;
const static uint16 kExtras = 398;
const static uint16 kWorkspace = 400;
const static uint16 kMapstore = 402;
const static uint16 kCharset1 = 404;
const static uint16 kTempcharset = 406;
const static uint16 kIcons1 = 408;
const static uint16 kIcons2 = 410;
const static uint16 kBuffers = 412;
const static uint16 kMainsprites = 414;
const static uint16 kBackdrop = 416;
const static uint16 kMapdata = 418;
const static uint16 kSounddata = 420;
const static uint16 kSounddata2 = 422;
const static uint16 kRecordspace = 424;
const static uint16 kFreedat = 426;
const static uint16 kSetdat = 428;
const static uint16 kReel1 = 430;
const static uint16 kReel2 = 432;
const static uint16 kReel3 = 434;
const static uint16 kRoomdesc = 436;
const static uint16 kFreedesc = 438;
const static uint16 kSetdesc = 440;
const static uint16 kBlockdesc = 442;
const static uint16 kSetframes = 444;
const static uint16 kFreeframes = 446;
const static uint16 kPeople = 448;
const static uint16 kReels = 450;
const static uint16 kCommandtext = 452;
const static uint16 kPuzzletext = 454;
const static uint16 kTraveltext = 456;
const static uint16 kTempgraphics = 458;
const static uint16 kTempgraphics2 = 460;
const static uint16 kTempgraphics3 = 462;
const static uint16 kTempsprites = 464;
const static uint16 kTextfile1 = 466;
const static uint16 kTextfile2 = 468;
const static uint16 kTextfile3 = 470;
const static uint16 kBlinkframe = 471;
const static uint16 kBlinkcount = 472;
const static uint16 kReasseschanges = 473;
const static uint16 kPointerspath = 474;
const static uint16 kManspath = 475;
const static uint16 kPointerfirstpath = 476;
const static uint16 kFinaldest = 477;
const static uint16 kDestination = 478;
const static uint16 kLinestartx = 480;
const static uint16 kLinestarty = 482;
const static uint16 kLineendx = 484;
const static uint16 kLineendy = 486;
const static uint16 kIncrement1 = 488;
const static uint16 kIncrement2 = 490;
const static uint16 kLineroutine = 491;
const static uint16 kLinepointer = 492;
const static uint16 kLinedirection = 493;
const static uint16 kLinelength = 494;
const static uint16 kLiftsoundcount = 495;
const static uint16 kEmmhandle = 497;
const static uint16 kEmmpageframe = 499;
const static uint16 kEmmhardwarepage = 500;
const static uint16 kCh0emmpage = 502;
const static uint16 kCh0offset = 504;
const static uint16 kCh0blockstocopy = 506;
const static uint16 kCh0playing = 507;
const static uint16 kCh0repeat = 508;
const static uint16 kCh0oldemmpage = 510;
const static uint16 kCh0oldoffset = 512;
const static uint16 kCh0oldblockstocopy = 514;
const static uint16 kCh1playing = 515;
const static uint16 kCh1emmpage = 517;
const static uint16 kCh1offset = 519;
const static uint16 kCh1blockstocopy = 521;
const static uint16 kCh1blocksplayed = 523;
const static uint16 kSoundbufferwrite = 525;
const static uint16 kSoundemmpage = 527;
const static uint16 kSpeechemmpage = 529;
const static uint16 kCurrentsample = 530;
const static uint16 kRoomssample = 531;
const static uint16 kGameerror = 532;
const static uint16 kHowmuchalloc = 534;
const static uint16 kReelroutines = 537;
const static uint16 kReelcalls = 1003;
const static uint16 kRoombyroom = 1254;
const static uint16 kR0 = 1327;
const static uint16 kR1 = 1328;
const static uint16 kR2 = 1332;
const static uint16 kR6 = 1351;
const static uint16 kR8 = 1358;
const static uint16 kR9 = 1374;
const static uint16 kR10 = 1381;
const static uint16 kR11 = 1385;
const static uint16 kR12 = 1389;
const static uint16 kR13 = 1393;
const static uint16 kR14 = 1406;
const static uint16 kR20 = 1440;
const static uint16 kR22 = 1462;
const static uint16 kR23 = 1493;
const static uint16 kR25 = 1506;
const static uint16 kR26 = 1528;
const static uint16 kR27 = 1550;
const static uint16 kR28 = 1575;
const static uint16 kR29 = 1594;
const static uint16 kR45 = 1610;
const static uint16 kR46 = 1617;
const static uint16 kR47 = 1654;
const static uint16 kR52 = 1667;
const static uint16 kR53 = 1671;
const static uint16 kR55 = 1678;
const static uint16 kSpritename1 = 1832;
const static uint16 kSpritename3 = 1845;
const static uint16 kIdname = 1857;
const static uint16 kCharacterset1 = 1870;
const static uint16 kCharacterset2 = 1883;
const static uint16 kCharacterset3 = 1896;
const static uint16 kSamplename = 1909;
const static uint16 kBasicsample = 1922;
const static uint16 kIcongraphics0 = 1935;
const static uint16 kIcongraphics1 = 1948;
const static uint16 kExtragraphics1 = 1961;
const static uint16 kIcongraphics8 = 1974;
const static uint16 kMongraphicname = 1987;
const static uint16 kMongraphics2 = 2000;
const static uint16 kCityname = 2013;
const static uint16 kTravelgraphic1 = 2026;
const static uint16 kTravelgraphic2 = 2039;
const static uint16 kDiarygraphic = 2052;
const static uint16 kMonitorfile1 = 2065;
const static uint16 kMonitorfile2 = 2078;
const static uint16 kMonitorfile10 = 2091;
const static uint16 kMonitorfile11 = 2104;
const static uint16 kMonitorfile12 = 2117;
const static uint16 kMonitorfile13 = 2130;
const static uint16 kMonitorfile20 = 2143;
const static uint16 kMonitorfile21 = 2156;
const static uint16 kMonitorfile22 = 2169;
const static uint16 kMonitorfile23 = 2182;
const static uint16 kMonitorfile24 = 2195;
const static uint16 kFoldertext = 2208;
const static uint16 kDiarytext = 2221;
const static uint16 kPuzzletextname = 2234;
const static uint16 kTraveltextname = 2247;
const static uint16 kIntrotextname = 2260;
const static uint16 kEndtextname = 2273;
const static uint16 kCommandtextname = 2286;
const static uint16 kVolumetabname = 2299;
const static uint16 kFoldergraphic1 = 2312;
const static uint16 kFoldergraphic2 = 2325;
const static uint16 kFoldergraphic3 = 2338;
const static uint16 kSymbolgraphic = 2351;
const static uint16 kGungraphic = 2364;
const static uint16 kMonkface = 2377;
const static uint16 kTitle0graphics = 2390;
const static uint16 kTitle1graphics = 2403;
const static uint16 kTitle2graphics = 2416;
const static uint16 kTitle3graphics = 2429;
const static uint16 kTitle4graphics = 2442;
const static uint16 kTitle5graphics = 2455;
const static uint16 kTitle6graphics = 2468;
const static uint16 kTitle7graphics = 2481;
const static uint16 kPalettescreen = 2494;
const static uint16 kCurrentfile = 2895;
const static uint16 kDmaaddresses = 4949;
const static uint16 kFileheader = 5881;
const static uint16 kFiledata = 5952;
const static uint16 kExtradata = 5958;
const static uint16 kRoomdata = 5971;
const static uint16 kMadeuproomdat = 7782;
const static uint16 kRoomscango = 7798;
const static uint16 kRoompics = 7813;
const static uint16 kOplist = 7816;
const static uint16 kInputline = 7944;
const static uint16 kLinedata = 8344;
const static uint16 kPresslist = 8350;
const static uint16 kSavenames = 8367;
const static uint16 kSavefiles = 8482;
const static uint16 kRecname = 8573;
const static uint16 kStak = 8829;
}
#endif