OSBGET - Read (get) byte from open file | |
---|---|
BBC->FAQ->API->OSBGET | Search |
6502 | Z80 | PDP11 | 80x86 | 32016 | ARM | On entry: | On exit: |
---|---|---|---|---|---|---|---|
A | A | R0 | AL | R1 | R0 | - | returned byte |
Y | H | R1 | AH | R2 | R1 | file handle | preserved |
Cy | Cy | Cy | Cy | Cy | Cy | - | Carry set if after EOF |
If the byte read is after the end of file, the carry flag is set on exit and the EOF-error-flag is set. After the EOF byte has been read, the next read produces an error. An error is generated if the object is a directory or doesn't have read access.
b%=BGET#ch calls OSBGET
| |
BGET#0
to read from the character input stream via OSRDCH.
&FFD7
| &FFD7, vectors via &0216
| &FFD7, vectors via &FFD8
| &FFD7, vectors via &FFD8
| INT &43, vectors via 0000:010C
| SVC &0D
| EMT 9, vector &09
| SWI "OS_BGet", vector &0A
| |
This page last updated 11-Aug-2006 |
---|