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