SD_DONL/IOW_DONL
This trap does a pending newline.
Call Parameters | Return Parameters | ||
---|---|---|---|
D0.B | $2F | D0.L | Error return. |
D1.L | D1.L | Corrupted. | |
D3.W | Timeout | D3.L | Preserved. |
A0.L | Channel ID | A0.L | Preserved. |
A1.L | A1.L | Corrupted. |
Errors
ERR_NC | Not complete. |
ERR_NO | Channel not open. |
Notes
- 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.
Example
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!