2018-01-28 18:30:49 +00:00
|
|
|
/*****************************************
|
|
|
|
* stdio - Standard I/O Routines for C02 *
|
|
|
|
*****************************************/
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Get Character
|
|
|
|
* Waits for key to be pressed *
|
|
|
|
* and Returns ASCII key value *
|
|
|
|
* Returns: char c = Key Value */
|
2018-02-02 21:33:57 +00:00
|
|
|
char getc();
|
2018-01-28 18:30:49 +00:00
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Character *
|
|
|
|
* Prints Character on Screen *
|
|
|
|
* Args: char c - Character to Print */
|
2018-02-02 21:33:57 +00:00
|
|
|
void putc();
|
2018-01-28 18:30:49 +00:00
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Get String
|
2020-10-14 02:22:34 +00:00
|
|
|
* Reads String from Keyboard, up *
|
|
|
|
* to 128 characters until the Return *
|
|
|
|
* key is pressed. If the Escape key *
|
|
|
|
* is pressed, input is aborted. *
|
|
|
|
* Args: int &s - string to read *
|
|
|
|
* Returns: char n - Length of String *
|
|
|
|
* $FF = Escape Pressed */
|
2018-02-02 21:33:57 +00:00
|
|
|
char gets();
|
2018-01-28 18:30:49 +00:00
|
|
|
|
2020-10-14 02:22:34 +00:00
|
|
|
/* Put Line *
|
|
|
|
* Prints String on Screen and moves *
|
|
|
|
* cursor to beginning of next line *
|
|
|
|
* Args: int &s - String to Print *
|
|
|
|
* Returns: char n - Characters Printed */
|
|
|
|
char putln();
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put String
|
|
|
|
* Prints String on Screen *
|
|
|
|
* Args: int &s - String to Print *
|
|
|
|
* Returns: char n - Characters Printed */
|
2018-02-02 21:33:57 +00:00
|
|
|
char puts();
|
2018-01-28 18:30:49 +00:00
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Substring *
|
|
|
|
* Prints String to Screen starting *
|
|
|
|
* at specified position *
|
|
|
|
* Args: char p - Starting Position *
|
|
|
|
* int &s - String to Print *
|
|
|
|
* Returns: char e - Ending Position */
|
2018-02-02 21:33:57 +00:00
|
|
|
char putsub();
|