OSWORD &52

From BeebWiki
Revision as of 19:13, 8 March 2015 by WikiSysop (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

OSWORD &52 (82 ) - Initialise file buffer DVR

On entry:
 XY+0..1=a heap handle
 XY+2   =access flags (&80=writable, &40=readable)
 XY+3   =file handle, or zero for a memory file
On exit:
 XY is the buffer handle
 C is set and X contains a failure code if the call
 failed. Failure codes are:
  1 = Memory claim failed
  2 = OSGBPB call failed
  3 = access failed
  4 = EOF detected
  5 = Memory release failed (heap corrupt)

See Also

Jgharston 13:42, 26 May 2009 (UTC)