Differences
This shows you the differences between two versions of the page.
— |
qdosmsq:traps:trap_3:ecur [2009/05/17 16:13] (current) george.gwilt created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SD_CURE/ | ||
+ | |||
+ | |||
+ | These traps enable or disable the cursor. | ||
+ | ^Trap^Value in D0.B^Action^ | ||
+ | |SD_CURE/ | ||
+ | |SD_CURS/ | ||
+ | |||
+ | ^Call Parameters^^Return Parameters^^ | ||
+ | |D0.B|See above|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. | ||
+ | * These traps ensure that the cursor is set to the required state. No error is signalled if the cursor was already in the state required. | ||
+ | |||
+ | ===== Example ===== | ||
+ | The example below shows the use of this trap call to enable the cursor. It is assumed that A0 contains the window' | ||
+ | |||
+ | < | ||
+ | enable | ||
+ | moveq # | ||
+ | trap #3 ; Make sure the cursor is enabled | ||
+ | tst.l | ||
+ | bne | ||
+ | </ | ||
+ | |||