QDOS Internals

Anything you never knew you wanted to know about the Sinclair QL.

User Tools

Site Tools


qdosmsq:traps:trap_1:usjb

MT_RELJB/SMS_USJB

Release an existing job from suspension. (ok, how do I release a non-existing job then? LOL)

Call ParametersReturn Parameters
D0.B$09D0.LError code.
D1.LId of the job to be Released.D1.LPreserved.
A0.LUnused. A0.LBase address of released job.

Errors

ERR_NJInvalid job id.

Notes

  • All registers not shown above are not used on entry and are preserved on exit.
  • The flag byte (at the address held in JB_HOLD in the job header) will be cleared when the job is released.
  • This trap always exits via the job scheduler, so it is not atomic.

Example

The following shows the use of this call :

        moveq   #mt_reljb,d0    ; Trap code
        moveq   #<job_id>,d1    ; <job_id> is a known job id
        trap    #1              ; Suspend the job
qdosmsq/traps/trap_1/usjb.txt · Last modified: 2008/07/25 11:07 by norman