IN (input)

Receives input message from the queue into registers.

Syntax

IN ;code:110

Description

This instruction receives single message from the front of the input message queue and writes it into registers. Message is deleted from the queue.

This instruction has no parameters. You can read informations about received message from registers. Remember that executing this instruction can change all universal registers: AR, BR, CR and DR.

Architecture of a message depends on particular message, but every message returns:

A1 [out,1u]
Device identifier
A2 [out,1u]
Input message type (dependent on a device)

If there are no input messages waiting in a queue, A1 will be 0.