qdosmsq:traps:trap_3:ecur

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

qdosmsq:traps:trap_3:ecur [2009/05/17 17:13] (current)
george.gwilt created
Line 1: Line 1:
 +====== SD_CURE/​IOW_ECUR & SD_CURS/​IOW_DCUR ======
 +
 +
 +These traps enable or disable the cursor.
 +^Trap^Value in D0.B^Action^
 +|SD_CURE/​IOW_ECUR|$0E|Enable the cursor|
 +|SD_CURS/​IOW_DCUR|$0F|Disable the cursor|
 +
 +^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'​s ID.
 +
 +<​code>​
 +enable ​ moveq   #​sd_cure,​d0 ​    ; $0E
 +        moveq   #​-1,​d3 ​         ; Timeout
 +        trap    #3              ; Make sure the cursor is enabled
 +        tst.l   ​d0 ​             ; OK? . .
 +        bne     ​error ​          ; . . no!
 +</​code>​
 +
  
  • qdosmsq/traps/trap_3/ecur.txt
  • Last modified: 2009/05/17 17:13
  • by george.gwilt