This shows you the differences between two versions of the page.

Link to this comparison view

qdosmsq:traps:trap_1:nthu [2010/11/06 14:16] (current)
george.gwilt created
Line 1: Line 1:
 +====== SMS_NTHU ======
 +This trap finds the users of a Thing. The Trap cannot be used in the QDOS and SMSQ/E operating systems. Look at the Notes [[lthg|here]] for a solution.
 +^Call Parameters^^Return Parameters^^
 +|D0.B|$2C|D0.L|Error code.|
 +|D2.L|Unused|D2.L|ID of job owning the usage block.|
 +|A0.L|Pointer to Thing name.|A0.L|Preserved.|
 +|A1.L|Address of Thing usage block/0.|A1.L|Next usage block|
 +===== Errors =====
 +|ERR_NF|Thing not found.|
 +|ERR_NJ|Usage block not found.|
 +===== Notes =====
 +  * All registers not shown above are not used on entry and are preserved on exit.
 +  * If A0 is zero on entry the Trap looks for the first user. If there is no user ERR_NJ is set. Otherwise A1 points to the usage block so that a re-entry to the Trap will cause it to find the next user.
  • qdosmsq/traps/trap_1/nthu.txt
  • Last modified: 2010/11/06 14:16
  • by george.gwilt