QDOS Internals

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

User Tools

Site Tools


Table of Contents


This trap scans the Thing list. The Trap cannot be used in the QDOS and SMSQ/E operating systems. Look at the Notes here for a solution.

Call ParametersReturn Parameters
D0.B$2BD0.LError code.
A0.LPointer to Thing name/0A0.LPreserved.
A1.LUnused.A1.LPointer to next Thing linkage.


ERR_NFThing not found.


  • All registers not shown above are not used on entry and are preserved on exit.
  • If A0 is zero, the Trap finds the first Thing in the list. Otherwise it finds the next Thing in the list after the name to which A0 points.
  • On a successful return A1.L points to the linkage block of the next Thing. That Thing's name will be at $2A(A1). Setting that address in A0 and reentering the Trap allows the whole list to be scanned.
qdosmsq/traps/trap_1/nthg.txt · Last modified: 2010/11/06 13:57 by george.gwilt