CnC_Remastered_Collection

Command and Conquer: Red Alert
Log | Files | Refs | README | LICENSE

IPXPROT.ASM (5091B)


      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 ;!!!!!!!!!!!!!!!!!!! lock the allocation
     18 
     19 ;***************************************************************************
     20 ;**   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        **
     21 ;***************************************************************************
     22 ;*                                                                         *
     23 ;*                 Project Name : VQLIB                                    *
     24 ;*                                                                         *
     25 ;*                    File Name : HANDLER.ASM                              *
     26 ;*                                                                         *
     27 ;*                   Programmer : Bill Randolph                            *
     28 ;*                                                                         *
     29 ;*                   Start Date : April 7, 1995                            *
     30 ;*                                                                         *
     31 ;*                  Last Update : April 7, 1995   [BRR]                    *
     32 ;*                                                                         *
     33 ;*-------------------------------------------------------------------------*
     34 ;* Functions:                                                              *
     35 ;*   IPXHandler -- callback routine for IPX                                *
     36 ;* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
     37 ;********************* Model & Processor Directives ************************
     38 IDEAL
     39 P386
     40 MODEL USE32 FLAT
     41 LOCALS ??
     42 
     43 
     44 ;******************************** Includes *********************************
     45 
     46 
     47 ;******************************** Defines ***********************************
     48 
     49 
     50 ;****************************** Declarations ********************************
     51 global C	 Get_RM_IPX_Address:NEAR
     52 global C	 Get_RM_IPX_Size:NEAR
     53 
     54 ;********************************* Data ************************************
     55 	DATASEG
     56 
     57 LABEL 	RealBinStart	BYTE
     58 include "obj\ipxreal.ibn"
     59 LABEL	RealBinEnd	BYTE
     60 
     61 ;********************************* Data ************************************
     62 	CODESEG
     63 
     64 ;***************************************************************************
     65 ;* Get_RM_IPX_Address -- Return address of real mode code for copy.        *
     66 ;*                                                                         *
     67 ;* INPUT:								   *
     68 ;*	none                                                               *
     69 ;*                                                                         *
     70 ;* OUTPUT:      							   *
     71 ;*	VOID * to the address of the real mode IPX code			   *
     72 ;*                                                                         *
     73 ;* PROTO:								   *
     74 ;*	VOID	*Get_RM_IPX_Address(VOID);			           *
     75 ;*                                                                         *
     76 ;* HISTORY:                                                                *
     77 ;*   07/06/1994 SKB : Created.                                             *
     78 ;*=========================================================================*
     79 	PROC	Get_RM_IPX_Address C Near
     80 
     81 	mov	eax, OFFSET RealBinStart
     82 	ret
     83 
     84 	ENDP
     85 
     86 ;***************************************************************************
     87 ;* Get_RM_IPX_Size -- return size of real mode IPX code.                   *
     88 ;*                                                                         *
     89 ;* INPUT:					   			   *
     90 ;*	none                                                               *
     91 ;*                                                                         *
     92 ;* OUTPUT:      				   			   *
     93 ;*	LONG size of the real mode IPX code                                *
     94 ;*                                                                         *
     95 ;* PROTO:					   			   *
     96 ;*	LONG	Get_RM_IPX_Size(VOID);				   	   *
     97 ;*                                                                         *
     98 ;* HISTORY:                                                                *
     99 ;*   07/06/1994 SKB : Created.                                             *
    100 ;*=========================================================================*
    101 	PROC	Get_RM_IPX_Size C Near
    102 
    103 	mov	eax, OFFSET RealBinEnd - OFFSET RealBinStart
    104 	ret
    105 
    106 	ENDP
    107 
    108 	END
    109 
    110 ;************************** End of handler.asm *****************************