Documentation for the stdio module

(This documentation was generated automatically from the file stdio.asm by asmdoc on Nov 22, 2000.)


Version: 1.0
Author: Ken Clowes

This module contains elementary I/O subroutines for the terminal.


           
Summary
putstr            Outputs a string to the terminal.
getchar            Reads a character from serial port.
getline            Reads a line from the serial port.
isRxBufEmpty            Determines if the serial port receivev buffer is empty.

           
Details


putstr

Outputs a string to the terminal.

Parameters:
IX Starting address of string.
Returns:
Nothing
Side effects:
None


getchar

Reads a character from serial port. The character is returned in AccA.

Parameters:
none
Returns:
AccA: the character read
Side effects:
?


getline

Reads a line from the serial port. Backspaces are processed but not displayed.
Parameters:
IX: Address of string
Returns:
IX
Side effects:
CC


isRxBufEmpty

Determines if the serial port receivev buffer is empty.

Parameters:
none
Returns:
CC-bit Z = 1 if the buffer is empty; Z=0 if full.
Side effects:
none
Examples:
The following shows how to wait for a character.
    wait:    jsr isRxBufEmpty
             beq wait