OSWORD &52

From BeebWiki
Revision as of 14:54, 4 August 2009 by Jgharston (talk) (moved OSWORD 52 to OSWORD &52)
(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)