I stumbled upon on the following instructions found in src/lib/i386/rts/_sendrec.s
At the very beginning, the following statements are written out.
SEND = 1
RECEIVE = 2
BOTH = 3
SYSVEC = 33
SRCDEST = 8
MESSAGE = 12
How do I interpret the above statments? For example, SRCDEST = 8, should I read it as SRCDEST has a value of 8. If it does, the following statement do not make any sense to me. If not, what are SRCDEST, MESSAGE, BOTH? are they built-in functions? If yes, where are they defined in the .s file?
Based on the comments, eax = dest-src
. What are the values of dest and src?
ebx = message pointer
.
Does that mean ebx is a reference to the base pointer?
As for mov ecx, BOTH ! _sendrec(srcdest, ptr)
, what exactly is going on here?
appreciate if anyone can shed some light on the following statements or
point me a link or two. have been looking up the web for days and has no luck
finding the info. thank you for your time.
__sendrec:
mov eax, SRCDEST(ebp) ! eax = dest-src
mov ebx, MESSAGE(ebp) ! ebx = message pointer
mov ecx, BOTH ! _sendrec(srcdest, ptr)