This vector converts an integer to ASCII and prints it to a channel.
Call Parameters | Return Parameters | ||
---|---|---|---|
D0.L | Unused | D0.L | Error code. |
D1.W | Integer value | D1.L | Corrupted. |
D2.L | Unused | D2.L | Corrupted. |
D3.L | Unused | D3.L | Corrupted. |
A0.L | Channel ID | A0.L | Preserved. |
A1.L | Unused | A1.L | Corrupted. |
ERR_NC | Not complete (#0 only). |
ERR_NO | Channel not open. |
ERR_DF | Drive full. |
The example below shows how to print a number to the channel whose ID is in A0.
Prt move.w num,d1 movea.w UT_MINT,a2 ; UT_MINT vector address. jsr (a2) ; Make the call bne.s Error_handler ; Oops! num dc.w $456