Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

176 lines
8.7 KiB

  1. ; Kernel OLD routines, NOPs, but exist in KERNEL.DEF, so I can't kill them
  2. .xlist
  3. include kernel.inc
  4. include tdb.inc
  5. ;include eems.inc
  6. include newexe.inc
  7. .list
  8. if 0
  9. sBegin CODE
  10. assumes cs,CODE
  11. assumes ds,NOTHING
  12. assumes es,NOTHING
  13. ;-----------------------------------------------------------------------;
  14. ; EMSCopy ;
  15. ; ;
  16. ; This routine is the continuation of ems_glock. It is intended ;
  17. ; to be called from the clipboard (in C) or from ems_glock ;
  18. ; ;
  19. ; Arguments: ;
  20. ; SourcePID = The EMS PID of the source banks. ;
  21. ; RegSet = EMS register set of source object ;
  22. ; handle = handle to global object ;
  23. ; segaddr = address of object ;
  24. ; EmsSavAddr = address of ems save area (TDB_EEMSSave) ;
  25. ; ;
  26. ; Returns: ;
  27. ; ;
  28. ; Error Returns: ;
  29. ; ;
  30. ; Registers Preserved: ;
  31. ; ;
  32. ; Registers Destroyed: ;
  33. ; ;
  34. ; Calls: ;
  35. ; ;
  36. ; History: ;
  37. ; ;
  38. ; Mon July 20, 1987 15:10:23 -by- Rick N. Zucker [rickz] ;
  39. ; Wrote it. ;
  40. ;-----------------------------------------------------------------------;
  41. assumes ds, nothing
  42. assumes es, nothing
  43. cProc EMSCopy,<PUBLIC,FAR>,<di,si>
  44. parmW SourcePID
  45. parmW RegSet
  46. parmW handle
  47. parmD segaddr
  48. parmD EmsSavAddr
  49. cBegin
  50. cEnd
  51. sEnd CODE
  52. endif
  53. sBegin CODE
  54. assumes cs,CODE
  55. ;-----------------------------------------------------------------------;
  56. ; LimitEmsPages ;
  57. ; ;
  58. ; Limits the total number of EMS pages a task may have. ;
  59. ; ;
  60. ; Arguments: ;
  61. ; Maximum amount of memory in Kbytes that this task wants. ;
  62. ; ;
  63. ; Returns: ;
  64. ; ;
  65. ; Error Returns: ;
  66. ; ;
  67. ; Registers Preserved: ;
  68. ; ;
  69. ; Registers Destroyed: ;
  70. ; ;
  71. ; Calls: ;
  72. ; ;
  73. ; History: ;
  74. ; ;
  75. ; Fri Jun 26, 1987 01:53:15a -by- David N. Weise [davidw] ;
  76. ; Wrote it. ;
  77. ;-----------------------------------------------------------------------;
  78. cProc LimitEmsPages,<PUBLIC,FAR>
  79. ; parmD amount
  80. cBegin nogen
  81. xor ax,ax
  82. cwd
  83. ret 4
  84. cEnd nogen
  85. ;-----------------------------------------------------------------------;
  86. ; KbdReset ;
  87. ; ;
  88. ; Keyboard driver calls here when Ctl+Alt+Del is happening. ;
  89. ; ;
  90. ; Arguments: ;
  91. ; ;
  92. ; Returns: ;
  93. ; ;
  94. ; Error Returns: ;
  95. ; ;
  96. ; Registers Preserved: ;
  97. ; ;
  98. ; Registers Destroyed: ;
  99. ; ;
  100. ; Calls: ;
  101. ; ;
  102. ; History: ;
  103. ; ;
  104. ;-----------------------------------------------------------------------;
  105. cProc KbdRst,<PUBLIC,FAR>
  106. cBegin nogen
  107. ret
  108. cEnd nogen
  109. ;-----------------------------------------------------------------------;
  110. ; GetCurPID ;
  111. ; A utility routine for EMS functions needed from user routines ;
  112. ; ;
  113. ; function = ;
  114. ; 0 - return the current PID in ax ;
  115. ; 1 - copy the TDB_EEMSSave area into a new block and return ;
  116. ; the new block's handle in ax ;
  117. ; 2 - do not free the banks of the current app ;
  118. ; 3 - free the given PID's banks ;
  119. ; 4 - do an HFree on the given handle ;
  120. ; 5 - get expanded memory sizes ;
  121. ; 6 - ;
  122. ; 7 - do an EMS_save ;
  123. ; 8 - do an EMS_restore ;
  124. ; ;
  125. ; ;
  126. ; Arguments: ;
  127. ; None ;
  128. ; ;
  129. ; Returns: ;
  130. ; see above ;
  131. ; ;
  132. ; Error Returns: ;
  133. ; ;
  134. ; Registers Preserved: ;
  135. ; ;
  136. ; Registers Destroyed: ;
  137. ; ax,bx,cx,di,si,ds,es ;
  138. ; ;
  139. ; Calls: ;
  140. ; ;
  141. ; History: ;
  142. ; ;
  143. ; Fri Jul 17, 1987 11:02:23a -by- Rick N. Zucker [rickz] ;
  144. ; Wrote it. ;
  145. ;-----------------------------------------------------------------------;
  146. cProc GetCurPID,<PUBLIC,FAR>,<di,si>
  147. parmW function
  148. parmW gcpArg
  149. cBegin
  150. xor ax,ax
  151. xor dx,dx
  152. cEnd
  153. sEnd CODE
  154. end