OSWORD &00
OSWORD &00 ( 0 ) - Input line Acorn MOS 1.20
On entry: XY?0..1=>string buffer XY?2 =maximum line length XY?3 =minimum acceptable ASCII value XY?4 =maximum acceptable ASCII value On exit: Y is the line length (excluding CR) Cy=1 if Escape terminated input
Note that this is the only OSWORD call that legally returns values in the registers.
Note that the maximum line length at XY?2 does not count the CR, so XY?0..1 must point to at least 1+XY?2 bytes of free memory.
See Also
http://mdfs.net/Docs/Comp/BBC/Oswords
Jgharston 12:51, 26 May 2009 (UTC)