qdosmsq:vectors:wint

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

qdosmsq:vectors:wint [2009/02/16 10:52] (current)
george.gwilt created
Line 1: Line 1:
 +====== UT_MINT/UT_WINT - Vector $CE ======
 +
 +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.|
 +
 +
 +===== Errors =====
 +
 +|ERR_NC|Not complete (#0 only).|
 +|ERR_NO|Channel not open.|
 +|ERR_DF|Drive full.|
 +
 +===== Notes =====
 +  * 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.
 +  
 +
 +===== Example =====
 +The example below shows how to print a number to the channel whose ID is in A0.
 +
 +<code>
 +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
 +</code>
 +
  
  • qdosmsq/vectors/wint.txt
  • Last modified: 2009/02/16 10:52
  • by george.gwilt