qdosmsq:traps:trap_3:ecur

SD_CURE/IOW_ECUR & SD_CURS/IOW_DCUR

These traps enable or disable the cursor.

TrapValue in D0.BAction
SD_CURE/IOW_ECUR$0EEnable the cursor
SD_CURS/IOW_DCUR$0FDisable the cursor
Call ParametersReturn Parameters
D0.BSee aboveD0.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.
  • 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.

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

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!
  • qdosmsq/traps/trap_3/ecur.txt
  • Last modified: 2009/05/17 16:13
  • by george.gwilt