qdosmsq:traps:trap_1:comm

Differences

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

Link to this comparison view

qdosmsq:traps:trap_1:comm [2017/09/09 23:21] (current)
norman created
Line 1: Line 1:
 +====== MT_BAUD/SMS_COMM ======
 +This trap sets the baud rate.
 +
 +^Call Parameters^^Return Parameters^^
 +|D0.B|$12|D0.L|Error code.|
 +|D1.W| Baud rate. |D1.L|Corrupted.|
 +
 +===== Errors =====
 +
 +|ERR_BP|Not a valid baud rate.|
 +
 +===== Notes =====
 +  * All registers not shown above are not used on entry and are preserved on exit.
 +
 +===== Example =====
 +The example below shows the use of this trap call to set a baud rate of 9,600.
 +
 +<code>
 +Baud    moveq   #$12,d0         ; MT_BAUD.
 +        move.w  #9600,d1        ; Required baud rate.
 +        trap    #1              ; Set it.
 +        tst.l   d0              ; OK?
 +        beq.s   baud_ok         ; Yes.
 +        ...                     ; No, handle errors here.
 +</code>
  
  • qdosmsq/traps/trap_1/comm.txt
  • Last modified: 2017/09/09 23:21
  • by norman