Leaked source code of windows server 2003
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.

97 lines
2.0 KiB

  1. PAGE ,132
  2. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3. ;
  4. ; (C) Copyright Microsoft Corp. 1987-1990
  5. ; MS-DOS 5.00 - NLS Support - KEYB Command
  6. ;
  7. ;
  8. ; File Name: KEYBCPSD.ASM
  9. ; ----------
  10. ;
  11. ;
  12. ; Description:
  13. ; ------------
  14. ; Copies the SHARED_DATA_AREA into a part of memory that
  15. ; can be left resident. All relative pointers must already
  16. ; be recalculated to this new position.
  17. ; THIS FILE MUST BE THE LAST OF THE RESIDENT FILES WHEN KEYB IS LINKED.
  18. ;
  19. ;
  20. ; Procedures Contained in This File:
  21. ; ----------------------------------
  22. ;
  23. ; Include Files Required:
  24. ; -----------------------
  25. ; INCLUDE KEYBSHAR.INC
  26. ; INCLUDE KEYBCMD.INC
  27. ; INCLUDE KEYBTBBL.INC
  28. ;
  29. ; External Procedure References:
  30. ; ------------------------------
  31. ; FROM FILE ????????.ASM:
  32. ; procedure - description???
  33. ;
  34. ; Linkage Information: Refer to file KEYB.ASM
  35. ; --------------------
  36. ;
  37. ; Change History:
  38. ; ---------------
  39. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  40. PUBLIC SD_DEST_PTR
  41. PUBLIC COPY_SD_AREA
  42. PUBLIC SHARED_DATA
  43. INCLUDE KEYBSHAR.INC
  44. INCLUDE KEYBCMD.INC
  45. INCLUDE KEYBTBBL.INC
  46. CODE SEGMENT PUBLIC 'CODE'
  47. ASSUME CS:CODE,DS:CODE
  48. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  49. ;
  50. ; Module: COPY_SD_AREA
  51. ;
  52. ; Description:
  53. ;
  54. ; Input Registers:
  55. ;
  56. ; Output Registers:
  57. ; N/A
  58. ;
  59. ; Logic:
  60. ;
  61. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  62. SD EQU SHARED_DATA
  63. TSD EQU TEMP_SHARED_DATA
  64. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  65. ;
  66. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  67. COPY_SD_AREA PROC NEAR
  68. REP MOVS ES:BYTE PTR [DI],DS:[SI] ; Copy SHARED_DATA_AREA to
  69. ; new part of memory
  70. MOV BYTE PTR ES:SD.TABLE_OK,1 ; Activate processing flag
  71. INT 21H ; Exit
  72. COPY_SD_AREA ENDP
  73. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  74. ;
  75. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  76. db 'SHARED DATA'
  77. SD_DEST_PTR LABEL BYTE
  78. SHARED_DATA SHARED_DATA_STR <>
  79. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  80. CODE ENDS
  81. END
  82.