Remove an existing (inactive) job. If you need to remove an active job then you need MT_FRJOB/SMS_FRJB.
Call Parameters | Return Parameters | ||
---|---|---|---|
D0.B | $04 | D0.L | Error code. |
D1.L | Id of job to be removed, or -1 for the current job. | D1.L | Corrupted. |
D2.L | Unused. | D2.L | Corrupted. |
D3.L | Error code to return from killed job to any waiting jobs. | D3.L | Corrupted. |
A0.L | Unused. | A0.L | Corrupted. |
A1.L | Unused. | A1.L | Corrupted. |
A2.L | Unused. | A2.L | Corrupted. |
A3.L | Unused. | A3.L | Corrupted. |
ERR_NC | Not complete. The job being killed is still active. |
ERR_NJ | Invalid job id. |
The following shows the use of this call to remove the job with id $00010666.
start moveq #mt_rjob,d0 ; Trap code. moveq #$00010666,d1 ; I want to kill the job with this id. moveq #0,d3 ; Don't pass any error codes to the job I'm killing. trap #1 ; Kill this job. tst.l d0 ; Did it work? bne.s <error handler> ; It appears not. :