DESCMGMT.H (3315B)
1 // 2 // Copyright 2020 Electronic Arts Inc. 3 // 4 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free 5 // software: you can redistribute it and/or modify it under the terms of 6 // the GNU General Public License as published by the Free Software Foundation, 7 // either version 3 of the License, or (at your option) any later version. 8 9 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed 10 // in the hope that it will be useful, but with permitted additional restrictions 11 // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT 12 // distributed with this program. You should have received a copy of the 13 // GNU General Public License along with permitted additional restrictions 14 // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection 15 16 /*************************************************************************** 17 ** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ** 18 *************************************************************************** 19 * * 20 * Project Name : WWLIB32 library * 21 * * 22 * File Name : DESCMGMT.H * 23 * * 24 * Programmer : Scott K. Bowen * 25 * * 26 * Start Date : August 3, 1994 * 27 * * 28 * Last Update : August 3, 1994 [SKB] * 29 * * 30 *-------------------------------------------------------------------------* 31 * Functions: * 32 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 33 34 #ifndef DESCMGMT_H 35 #define DESCMGMT_H 36 37 38 #ifndef WWSTD_H 39 #include "wwstd.h" 40 #endif 41 42 //===================================================================== 43 // C type include files 44 #ifdef __cplusplus 45 extern "C" { 46 #endif 47 48 #include <dos.h> 49 #include <bios.h> 50 51 #ifdef __cplusplus 52 } 53 #endif 54 55 // ==================================================================== 56 57 58 // types 59 // These where taken from dos.h 60 //========================================== 61 62 // external functions 63 // =================================================== 64 extern ULONG Map_Segment_To_Address(ULONG address, ULONG length); 65 66 extern "C" { 67 // Assemble functions 68 extern UWORD FixSelector(UWORD sel); 69 extern UWORD GetDs(void); 70 extern UWORD GetCs(void); 71 extern VOID GetDefaultSelectors(VOID); 72 extern UWORD Get_Standard_Selector(void); 73 74 75 // Assembly data variables 76 extern UWORD CodeSelector; 77 extern UWORD DataSelector; 78 extern UWORD ScreenSelector; 79 extern UWORD GraphicsSelector; 80 extern UWORD PspSelector; 81 extern UWORD EnvSelector; 82 extern UWORD DosMemSelector; 83 extern UWORD Fp1167Selector; 84 extern UWORD FpWeitekSelector; 85 extern UWORD FpCyrixSelector; 86 } 87 88 #endif // DESCMGMT_H 89 90