QDOS Internals

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

User Tools

Site Tools


qdosmsq:traps:trap_2:close

Table of Contents

IO_CLOSE/IO_CLOS

This trap call closes the file who's ID is passed in A0.L.

<A NAME="Trap2_02"> <table>

Call ParametersReturn Parameters
D0.B$02D0.LError code.
A0.LChannel id to close.A0.LCorrupted.

Errors

ERR_NOChannel not open.

Notes

  • All registers not shown above are not used on entry and are preserved on exit.
  • Usually, the ERR_NO return in D0 is ignored and no action is taken.

Example

There is an example here showing how to open and close a file.

qdosmsq/traps/trap_2/close.txt · Last modified: 2008/06/25 13:02 by norman