qdosmsq:pe:pick

IOP.PICK

This trap picks a window.

Call ParametersReturn Parameters
D0.B$7CD0.LError returns
D1.LJob ID or keyD1.LPreserved
D2.L0 or k.wakeD2.LPreserved
D3.WTimeoutD3.LPreserved
A0.LWindow channel IDA0.LPreserved
ERR_NOChannel not open
ERR_NJInvalid job ID
  • All registers not mentioned above are unused and preserved.
  • If D1.L is a valid job ID that job is picked to the top of the pile. If the key in D1.L is -1 the job at the bottom will be picked to the top. If the key is -2, the job will, in addition, be marked "unlockable".
  • If D2.L is set to k.wake, a wake event is sent after the job is picked. Note that this should be used very sparingly if at all.
  • A0.L must contain the channel of an open window. Although this window is not in fact used, there has to be one open to allow the "picking" to take place.
  • qdosmsq/pe/pick.txt
  • Last modified: 2011/02/20 16:27
  • by george.gwilt