IPXPROT.ASM 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. ; TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed
  9. ; in the hope that it will be useful, but with permitted additional restrictions
  10. ; under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT
  11. ; distributed with this program. You should have received a copy of the
  12. ; GNU General Public License along with permitted additional restrictions
  13. ; with this program. If not, see [https://github.com/electronicarts/CnC_Remastered_Collection]>.
  14. ;!!!!!!!!!!!!!!!!!!! lock the allocation
  15. ;***************************************************************************
  16. ;** 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 **
  17. ;***************************************************************************
  18. ;* *
  19. ;* Project Name : VQLIB *
  20. ;* *
  21. ;* File Name : HANDLER.ASM *
  22. ;* *
  23. ;* Programmer : Bill Randolph *
  24. ;* *
  25. ;* Start Date : April 7, 1995 *
  26. ;* *
  27. ;* Last Update : April 7, 1995 [BRR] *
  28. ;* *
  29. ;*-------------------------------------------------------------------------*
  30. ;* Functions: *
  31. ;* IPXHandler -- callback routine for IPX *
  32. ;* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
  33. ;********************* Model & Processor Directives ************************
  34. IDEAL
  35. P386
  36. MODEL USE32 FLAT
  37. LOCALS ??
  38. ;******************************** Includes *********************************
  39. ;******************************** Defines ***********************************
  40. ;****************************** Declarations ********************************
  41. GLOBAL C Get_RM_IPX_Address:NEAR
  42. GLOBAL C Get_RM_IPX_Size:NEAR
  43. ;********************************* Data ************************************
  44. DATASEG
  45. LABEL RealBinStart BYTE
  46. include "obj\win32\ipxreal.ibn"
  47. LABEL RealBinEnd BYTE
  48. ;********************************* Data ************************************
  49. CODESEG
  50. ;***************************************************************************
  51. ;* Get_RM_IPX_Address -- Return address of real mode code for copy. *
  52. ;* *
  53. ;* INPUT: *
  54. ;* none *
  55. ;* *
  56. ;* OUTPUT: *
  57. ;* VOID * to the address of the real mode IPX code *
  58. ;* *
  59. ;* PROTO: *
  60. ;* VOID *Get_RM_IPX_Address(VOID); *
  61. ;* *
  62. ;* HISTORY: *
  63. ;* 07/06/1994 SKB : Created. *
  64. ;*=========================================================================*
  65. PROC Get_RM_IPX_Address C Near
  66. mov eax, OFFSET RealBinStart
  67. ret
  68. ENDP
  69. ;***************************************************************************
  70. ;* Get_RM_IPX_Size -- return size of real mode IPX code. *
  71. ;* *
  72. ;* INPUT: *
  73. ;* none *
  74. ;* *
  75. ;* OUTPUT: *
  76. ;* LONG size of the real mode IPX code *
  77. ;* *
  78. ;* PROTO: *
  79. ;* LONG Get_RM_IPX_Size(VOID); *
  80. ;* *
  81. ;* HISTORY: *
  82. ;* 07/06/1994 SKB : Created. *
  83. ;*=========================================================================*
  84. PROC Get_RM_IPX_Size C Near
  85. mov eax, OFFSET RealBinEnd - OFFSET RealBinStart
  86. ret
  87. ENDP
  88. END
  89. ;************************** End of handler.asm *****************************