AMX 86 Procedures
K
A
DAK
273
ajmxget ajmxget
Purpose Get a Message from a Message Exchange (no wait)
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup AMXID exchange;
char msg[AMXMSZ];
int status;
.
.
status = ajmxget(exchange, msg);
AX BX ES:SI
Where exchange is the message exchange id acquired by a call to ajmxcre.
msg is an array name or pointer to AMXMSZ consecutive bytes of storage
into which the message will be copied if it is available. The message
storage variable may be any AMXMSZ byte structure. AMXMSZ is
configured in the User Parameter File.
Results Interrupts are disabled and then restored to their state at the time of the
call.
Status is returned.
AEROK = Call successful
AERNSX = Invalid message exchange id
AERNMG = No message available
Note This procedure returns immediately with an error indication if no message
is available. Tasks can wait for a message by calling ajmxwat.
See Also ajmxwat, ajmxsnd