Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- DOS 5.0 Ref. - <b>device driver function 05h non-destructive read c</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Device driver function 05h      Non-destructive Read        C

    Non-destructive Read returns the next character from the input
    buffer without removing it from the buffer; subsequent read
    operations should return the same character.

    This function is required for character device drivers only.

    ------------------------------------------------------------------

    nrrStatus
    Specifies the status of the completed function. If the device
    input buffer has at least one character, the busy bit (bit 9) must
    be zero, indicating that DOS need not wait to read a character. If
    the input buffer has no characters, the driver must set the busy
    bit. In both cases, the driver must set the done bit (bit 8).

    If the function is not successful, the driver must set both the
    error and done bits (bits 15 and 8) and copy an error value to the
    low-order byte.


    nrrChar
    Receives the next character in the input buffer. The driver must
    copy the character without removing it from the input buffer.

See Also: NDReadRequest Dev04h Dev*

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson