This vector sends text to a channel.
Call Parameters | Return Parameters | ||
---|---|---|---|
D0.L | Unused | D0.L | Error code. |
D1.L | Unused | D1.L | Corrupted. |
D2.L | Unused | D2.L | Corrupted. |
D3.L | Unused | D3.L | 0 or -1 |
A0.L | Channel ID | A0.L | Preserved. |
A1.L | Pointer to text | A1.L | Corrupted. |
A2.L | Unused | A2.L | Corrupted. |
A3.L | Unused | A3.L | Corrupted. |
ERR_NC | Not complete (only for A0=0) |
ERR_NO | Channel not open |
ERR_DF | Drive full |
The example below shows the use of this vector to print a message.
Prt movea.w UT_MTEXT,a2 ; UT_MTEXT vector address. lea mess,a1 ; Address of message. jsr (a2) ; Print the message bne.s Error_handler ; Oops! (QDOS versions later than 1.03) rts mess dc.w 6 dc.b 'Hello',10