This trap sets the baud rate.
Call Parameters | Return Parameters | ||
---|---|---|---|
D0.B | $12 | D0.L | Error code. |
D1.W | Baud rate. | D1.L | Corrupted. |
ERR_BP | Not a valid baud rate. |
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.