qdosmsq:traps:trap_3:donl

SD_DONL/IOW_DONL

This trap does a pending newline.

Call ParametersReturn Parameters
D0.B$2FD0.LError return.
D1.L D1.LCorrupted.
D3.WTimeout D3.LPreserved.
A0.LChannel ID A0.LPreserved.
A1.L A1.LCorrupted.
ERR_NCNot complete.
ERR_NOChannel not open.
  • All registers not shown above are not used on entry and are preserved on exit.
  • If a newline is pending it is activated, otherwise no action is taken and no error is signalled.
  • When a newline is activated the cursor is placed at the start of the new line, the window being scrolled up if need be.

The example below shows the use of this trap call. It is assumed that A0 contains the window's ID.

newl    moveq   #sd_donl,d0     ; $2F
        moveq   #-1,d3          ; Timeout
        trap    #3              ; Do the newline if needed
        tst.l   d0              ; OK? . .
        bne     error           ; . . no!
  • qdosmsq/traps/trap_3/donl.txt
  • Last modified: 2009/05/19 16:02
  • by george.gwilt