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.

106 lines
3.2 KiB

  1. ;/*
  2. ; * Microsoft Confidential
  3. ; * Copyright (C) Microsoft Corporation 1991
  4. ; * All Rights Reserved.
  5. ; */
  6. ;
  7. ;******************************************************************************
  8. ; Message Macro Definitions
  9. ;******************************************************************************
  10. ;
  11. EXTRN Display_Interface:near
  12. ;-----------------------------------------------------------------------------
  13. Message macro Message_Name ; ;AN000;
  14. ;
  15. mov dx,offset data:Message_Name ; ;AN000;
  16. call Display_Interface ; ;AN000;
  17. endm ; ;AN000;
  18. ;-----------------------------------------------------------------------------
  19. Parse_Message macro ; ;AN000;
  20. ;
  21. push ds
  22. mov dx,data
  23. mov ds,dx
  24. mov word ptr Parse_Error_Msg,ax ; ;AN000;
  25. mov dx,offset Parse_Error_Msg ; ;AN000;
  26. call Display_Interface ; ;AN000;
  27. pop ds ;
  28. endm ; ;AN000;
  29. ;-----------------------------------------------------------------------------
  30. Extended_Message macro ; ;AN000;
  31. ;
  32. push ds
  33. mov dx,data
  34. mov ds,dx
  35. mov word ptr Extended_Error_Msg,ax ; ;AN000;
  36. mov dx,offset data:Extended_Error_Msg ; ;AN000;
  37. call Display_Interface ; ;AN000;
  38. pop ds
  39. endm ; ;AN000;
  40. ;
  41. ;*****************************************************************************
  42. ; General Macro's
  43. ;*****************************************************************************
  44. ;
  45. Procedure macro Proc_Name
  46. Public Proc_Name
  47. Proc_Name proc
  48. endm
  49. ;-----------------------------------------------------------------------------
  50. DOS_Call macro Function
  51. mov ah,Function
  52. int 21h
  53. endm
  54. ;-----------------------------------------------------------------------------
  55. Popff macro
  56. jmp $+3
  57. iret
  58. push cs
  59. call $-2
  60. endm
  61. ;-----------------------------------------------------------------------------
  62. Set_Data_Segment macro
  63. push ax
  64. mov ax,data ;Point to data segment
  65. mov ds,ax ;
  66. push ds
  67. pop es
  68. pop ax
  69. assume ds:data,es:data
  70. endm
  71.