qdosmsq:traps:trap_1:comm

MT_BAUD/SMS_COMM

This trap sets the baud rate.

Call ParametersReturn Parameters
D0.B$12D0.LError code.
D1.W Baud rate. D1.LCorrupted.
ERR_BPNot a valid baud rate.
  • All registers not shown above are not used on entry and are preserved on exit.

The example below shows the use of this trap call to set a baud rate of 9,600.

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.
  • qdosmsq/traps/trap_1/comm.txt
  • Last modified: 2017/09/09 23:21
  • by norman