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.

70 lines
2.0 KiB

  1. PAGE,132
  2. ;*****************************************************************;
  3. ;** Microsoft Windows for Workgroups **;
  4. ;** Copyright (C) Microsoft Corp., 1991-1993 **;
  5. ;*****************************************************************;
  6. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  7. ;; ;;
  8. ;; COMPONENT: Windows NetWare DLL. ;;
  9. ;; ;;
  10. ;; FILE: NWASMUTL.ASM ;;
  11. ;; ;;
  12. ;; PURPOSE: General routines used that cannot be done in C. ;;
  13. ;; ;;
  14. ;; REVISION HISTORY: ;;
  15. ;; vlads 09/20/93 First cut ;;
  16. ;; ;;
  17. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  18. INCLUDE CMACROS.INC
  19. ?PLM = 1
  20. ?WIN=0
  21. ifndef SEGNAME
  22. SEGNAME equ <_TEXT> ; default seg name
  23. endif
  24. createSeg %SEGNAME, CodeSeg, word, public, CODE
  25. sBegin CodeSeg ; this defines what seg this goes in
  26. assumes cs,CodeSeg
  27. ;;
  28. ;; Swapping bytes in a word
  29. ;;
  30. cProc WordSwap, <PUBLIC,FAR>
  31. parmW inWord
  32. cBegin
  33. mov ax, word ptr (inWord)
  34. xchg al, ah
  35. cEnd
  36. ;;
  37. ;; Swapping words in a long word
  38. ;;
  39. cProc LongSwap, <FAR,PUBLIC>, <dx>
  40. parmD inLong
  41. cBegin
  42. mov dx, word ptr (inLong + 2)
  43. xchg dl, dh
  44. mov ax, word ptr (inLong)
  45. xchg al, ah
  46. cEnd
  47. ;public NETWAREREQUEST
  48. ;
  49. ;NETWAREREQUEST proc far
  50. ; int 21h
  51. ; retf
  52. ;NETWAREREQUEST endp
  53. sEnd _thisseg
  54. END