IPXPROT.ASM 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. ;
  2. ; Command & Conquer(tm)
  3. ; Copyright 2025 Electronic Arts Inc.
  4. ;
  5. ; This program is free software: you can redistribute it and/or modify
  6. ; it under the terms of the GNU General Public License as published by
  7. ; the Free Software Foundation, either version 3 of the License, or
  8. ; (at your option) any later version.
  9. ;
  10. ; This program is distributed in the hope that it will be useful,
  11. ; but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ; GNU General Public License for more details.
  14. ;
  15. ; You should have received a copy of the GNU General Public License
  16. ; along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. ;
  18. ;!!!!!!!!!!!!!!!!!!! lock the allocation
  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. ;******************************** Includes *********************************
  43. ;******************************** Defines ***********************************
  44. ;****************************** Declarations ********************************
  45. global C Get_RM_IPX_Address:NEAR
  46. global C Get_RM_IPX_Size:NEAR
  47. ;********************************* Data ************************************
  48. DATASEG
  49. LABEL RealBinStart BYTE
  50. include "obj\ipxreal.ibn"
  51. LABEL RealBinEnd BYTE
  52. ;********************************* Data ************************************
  53. CODESEG
  54. ;***************************************************************************
  55. ;* Get_RM_IPX_Address -- Return address of real mode code for copy. *
  56. ;* *
  57. ;* INPUT: *
  58. ;* none *
  59. ;* *
  60. ;* OUTPUT: *
  61. ;* VOID * to the address of the real mode IPX code *
  62. ;* *
  63. ;* PROTO: *
  64. ;* VOID *Get_RM_IPX_Address(VOID); *
  65. ;* *
  66. ;* HISTORY: *
  67. ;* 07/06/1994 SKB : Created. *
  68. ;*=========================================================================*
  69. PROC Get_RM_IPX_Address C Near
  70. mov eax, OFFSET RealBinStart
  71. ret
  72. ENDP
  73. ;***************************************************************************
  74. ;* Get_RM_IPX_Size -- return size of real mode IPX code. *
  75. ;* *
  76. ;* INPUT: *
  77. ;* none *
  78. ;* *
  79. ;* OUTPUT: *
  80. ;* LONG size of the real mode IPX code *
  81. ;* *
  82. ;* PROTO: *
  83. ;* LONG Get_RM_IPX_Size(VOID); *
  84. ;* *
  85. ;* HISTORY: *
  86. ;* 07/06/1994 SKB : Created. *
  87. ;*=========================================================================*
  88. PROC Get_RM_IPX_Size C Near
  89. mov eax, OFFSET RealBinEnd - OFFSET RealBinStart
  90. ret
  91. ENDP
  92. END
  93. ;************************** End of handler.asm *****************************