2018-01-28 18:30:49 +00:00
|
|
|
/*****************************************
|
|
|
|
* stdio - Standard I/O Routines for C02 *
|
|
|
|
*****************************************/
|
|
|
|
|
|
|
|
/* Read Character from Keyboard *
|
|
|
|
* Waits for Keypress *
|
|
|
|
* Returns: ASCII value of Key */
|
2018-02-02 21:33:57 +00:00
|
|
|
char getc();
|
2018-01-28 18:30:49 +00:00
|
|
|
|
|
|
|
/* Write Character to Screen *
|
|
|
|
* Args: c - ASCII character to write */
|
2018-02-02 21:33:57 +00:00
|
|
|
void putc();
|
2018-01-28 18:30:49 +00:00
|
|
|
|
|
|
|
/* Read String from Keyboard *
|
|
|
|
* Buffers string until C/R is pressed *
|
|
|
|
* Args: &s - string read from keyboard *
|
|
|
|
* Returns: length of string */
|
2018-02-02 21:33:57 +00:00
|
|
|
char gets();
|
2018-01-28 18:30:49 +00:00
|
|
|
|
|
|
|
/* Write String to Screen *
|
|
|
|
* Args: &s - string to print from *
|
|
|
|
* Returns: ending position in string */
|
2018-02-02 21:33:57 +00:00
|
|
|
char puts();
|
2018-01-28 18:30:49 +00:00
|
|
|
|
|
|
|
/* Write Partial String to Screen *
|
|
|
|
* Args: n - starting position in string *
|
|
|
|
* &s - string to print from *
|
|
|
|
* Returns: ending position in string */
|
2018-02-02 21:33:57 +00:00
|
|
|
char putsub();
|
2018-01-28 18:30:49 +00:00
|
|
|
|
|
|
|
/* Write String to Screen and Move *
|
|
|
|
* Cursor to Beginning of Next Line *
|
|
|
|
* Args: &s - string to print to screen *
|
|
|
|
* Returns: number of characters printed */
|
2018-02-02 21:33:57 +00:00
|
|
|
char putln();
|