qdosmsq:vectors:wint

UT_MINT/UT_WINT - Vector $CE

This vector converts an integer to ASCII and prints it to a channel.

Call ParametersReturn Parameters
D0.LUnused D0.LError code.
D1.WInteger value D1.LCorrupted.
D2.LUnused D2.LCorrupted.
D3.LUnused D3.LCorrupted.
A0.LChannel IDA0.LPreserved.
A1.LUnused A1.LCorrupted.
ERR_NCNot complete (#0 only).
ERR_NOChannel not open.
ERR_DFDrive full.
  • All registers not shown above are not used on entry and are preserved on exit.
  • This must be called in user mode unless A0 is zero.

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
  • qdosmsq/vectors/wint.txt
  • Last modified: 2009/02/16 10:52
  • by george.gwilt