AMX 86 Procedures
K
A
DAK
291
ajsenwp ajsenwp
Purpose Send a Message to a Task Mailbox (Wait for Ack)
To request AMX to send a message to a task at a given priority and to
begin execution of that task as soon as possible.
The task making the request is placed into the wait state until either:
1. the called task receives the message and mak es an ajwakc call, or
2. the called task receives the message and ends by making an ajend
call or by returning to AMX.
Used by n Task o IS P o Timer Procedure o Restart Procedure n Exit Procedure
Setup AMXID taskid;
int priority;
int status;
int parm1;
int parm2;
.
.
status = ajsenwp(taskid, priority, parm1, parm2...);
AX AASEND DX CX[14..0] @ES:BX
CX[15]=1
Where taskid is the task id of the task to whom the message is to be sent.
priority is the priority of the message.
(0 = highest; 3 = lowest).
parm1, parm2... on the stack form the message to be copied to the
destination task. The number of bytes copied from the stack depends
on the AMX message size which is AMXMSZ bytes. AMXMSZ is
configured in the User Parameter File.