Function Number | Function |
0x10 | Open message queue |
0x20 | Send Message |
0x30 | Get message (with waiting) |
0x31 | Check for message (without waiting) |
This opens a message queue for the current task.
Input
None
Output
EBX Message port ID
AL Status
This sends a message from one message port to another message port..
Input
EBX Senders ID
ECX Address of message buffer
EDX Receivers ID
Output
AL Status
0x30 Get message (with waiting)
This function waits until a message arrives and copies it into the message buffer. The message is removed from the queue.
Input
EBX Message Port ID
ECX Address of message buffer
Output
EBX Senders message port ID
AL Status
0x31
Check for message (without waiting)
This function will copy a message from a queue into a buffer (like function 0x30) but rather than waiting for a message (if the queue is empty) it returns an error. If a message is returned it is removed from the queue.
Input
EBX Message Port ID
ECX Address of message buffer
Output
EBX Senders message port ID
AL Status