1 .define __send, __receive, __sendrec
3 ! See
../h/com.h for C definitions
9 !*========================================================================*
10 ! _send
and _receive
*
11 !*========================================================================*
12 ! _send
(), _receive
(), _sendrec
() all save bp
, but destroy ax
, bx
, and cx.
13 .extern __send, __receive, __sendrec
14 __send
: mov cx
,*SEND
! _send
(dest
, ptr
)
18 mov cx
,*RECEIVE
! _receive
(src
, ptr
)
22 mov cx
,*BOTH
! _sendrec
(srcdest
, ptr
)
26 mov bp
,sp
! can
't index off sp
27 mov ax,4(bp) ! ax = dest-src
28 mov bx,6(bp) ! bx = message pointer
29 int SYSVEC ! trap to the kernel