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.

59 lines
655 B

  1. PROCEDURE MACRO name, p1, p2
  2. align 4
  3. IFB <p2>
  4. name PROC
  5. ELSE
  6. name PROC FAR
  7. ENDIF
  8. IFNB <p1>
  9. PUBLIC name
  10. ENDIF
  11. ENDM
  12. DELAY MACRO
  13. clc
  14. jnc $+2
  15. ENDM
  16. DISABLE MACRO
  17. cli
  18. ENDM
  19. ENABLE MACRO
  20. sti
  21. ENDM
  22. SWAP_ESDS MACRO
  23. push ds
  24. push es
  25. pop ds
  26. pop es
  27. ENDM
  28. SAVE_ENV MACRO
  29. push si
  30. push di
  31. push ds
  32. push es
  33. ENDM
  34. RESTORE_ENV MACRO
  35. pop es
  36. pop ds
  37. pop di
  38. pop si
  39. ENDM
  40. INT3 MACRO
  41. int 3
  42. ENDM
  43. MSG MACRO msg, strng
  44. PUBLIC msg
  45. msg DB strng
  46. DB cr, lf, eom
  47. ENDM