When calling the OSBGET routine from machine code you will need to use the absolute address &40D7. However, when CALLing this routine from BBC BASIC it is recommended that you use the BBC Micro-compatible address &FFD7.

This routine reads a byte from a file via its handle. The file pointer is incremented after the byte has been read.

This routine performs the same task as the BGET# function.

On entry, H contains the file handle. On exit the carry flag is set if the file pointer was at the end of the file, otherwise A contains the value read from the file.