Set a job's priority.
Call Parameters | Return Parameters | ||
---|---|---|---|
D0.B | $0B | D0.L | Error code. |
D1.L | Id of the job to be prioritised. | D1.L | Preserved unless on entry it was -1 in which case it will become the Id of the current job. |
D2.B | Job's new priority. See notes below. | D2.L | Preserved. |
A0.L | Unused. | A0.L | Base address of prioritised job. |
ERR_NJ | Invalid job id. |
The following shows the use of this call to change the priority of the current job to a very low priority.
moveq #mt_prior,d0 ; Trap code moveq #-1,d1 ; Change my own priority moveq #1,d2 ; Set priority very low trap #1 ; Change the priority