2018-02-02 23:02:06 +00:00
|
|
|
/******************************************
|
|
|
|
* stdiox - Extended I/O Routines for C02 *
|
|
|
|
******************************************/
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Any Key *
|
|
|
|
* Displays "Press any key to continue" *
|
|
|
|
* prompt and wait for key to be pressed *
|
|
|
|
* Returns: char c - ASCII Value of Key */
|
2018-07-27 18:11:39 +00:00
|
|
|
void anykey();
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Get Character with Prompt *
|
|
|
|
* Displays prompt and waits for key *
|
|
|
|
* to be pressed *
|
|
|
|
* Args: int &s - Prompt *
|
|
|
|
* Returns: char c - ASCII Value of Key */
|
2018-07-27 18:11:39 +00:00
|
|
|
void getcpr();
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Print Formatted *
|
|
|
|
* Prints char value, and/or contents *
|
|
|
|
* of dstptr on screen formatted by *
|
|
|
|
* Args: char c - Character to Format *
|
|
|
|
* int &s - Formatting String */
|
2018-07-27 18:11:39 +00:00
|
|
|
void printf();
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Binary *
|
|
|
|
* Prints byte as binary number *
|
|
|
|
* Args: char b - Number to Print */
|
2018-09-17 23:44:47 +00:00
|
|
|
void putbin();
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Decimal *
|
|
|
|
* Prints byte as decimal number *
|
|
|
|
* Args: char b - Number to Print */
|
2018-02-02 23:02:06 +00:00
|
|
|
void putdec();
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Decimal Hundred *
|
|
|
|
* Prints Byte Modulo 100 as two *
|
|
|
|
* digit zero-filled decimal number *
|
|
|
|
* Args: char b - Number to Print */
|
2020-09-30 16:28:00 +00:00
|
|
|
void putdeh();
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Decimal Left Justified *
|
|
|
|
* Prints byte as decimal number, *
|
|
|
|
* right-padded with spaces, for a *
|
|
|
|
* total of three charcaters *
|
|
|
|
* Args: char b - Number to Print */
|
2018-02-03 17:43:05 +00:00
|
|
|
void putdel();
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Decimal Right Justified *
|
|
|
|
* Prints byte as decimal number, *
|
|
|
|
* left-padded with spaces, for a *
|
|
|
|
* total of three charcaters *
|
|
|
|
* Args: char b - Number to Print */
|
2018-02-03 17:43:05 +00:00
|
|
|
void putder();
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Decimal Zero-Filled *
|
|
|
|
* Prints byte as decimal number, *
|
|
|
|
* left-padded with zeroes, for a *
|
|
|
|
* total of three charcaters *
|
|
|
|
* Args: char b - Number to Print */
|
2020-09-30 16:28:00 +00:00
|
|
|
void putdez();
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Print Destination String *
|
|
|
|
* Prints string with *
|
|
|
|
* address in dstptr *
|
|
|
|
* Return: char n: Characters Printed */
|
2018-07-19 04:27:50 +00:00
|
|
|
void putdst();
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Extended Hexadecimal *
|
|
|
|
* Prints 24-bit value as six digit *
|
|
|
|
* hexadecimal number *
|
2020-09-08 15:51:30 +00:00
|
|
|
* Args: char n - High Byte *
|
|
|
|
* int w - Middle and Low Bytes */
|
|
|
|
void putexh();
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Hexadecimal *
|
|
|
|
* Prints byte as two digit *
|
|
|
|
* hexadecimal number *
|
|
|
|
* Args: char b - Byte to Print */
|
2018-09-17 23:44:47 +00:00
|
|
|
void puthex();
|
|
|
|
|
2020-10-14 02:22:34 +00:00
|
|
|
/* Put Integer Right Justified *
|
|
|
|
* Prints word as decimal number *
|
|
|
|
* left-padded with spaces for *
|
|
|
|
* a total of five charcaters *
|
|
|
|
* Args: int w - Word to Print */
|
|
|
|
void putinr();
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Integer *
|
|
|
|
* Prints word as decimal number *
|
|
|
|
* Args: int w - Word to Print */
|
2020-09-08 15:51:30 +00:00
|
|
|
void putint();
|
2018-02-03 17:43:05 +00:00
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Mask *
|
|
|
|
* Prints byte as binary number *
|
|
|
|
* with bits specified by mask *
|
|
|
|
* Args: char b - Byte to Print *
|
|
|
|
* char m - Bit Mask */
|
2020-09-08 15:51:30 +00:00
|
|
|
void putmsk();
|
2019-05-27 21:12:10 +00:00
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Nybble *
|
|
|
|
* Prints low nybble of byte *
|
|
|
|
* as hexadecimal digit *
|
|
|
|
* Args: char b - Byte to Print */
|
2020-09-08 15:51:30 +00:00
|
|
|
void putnyb();
|
2019-05-27 21:12:10 +00:00
|
|
|
|
2020-10-14 02:22:34 +00:00
|
|
|
/* Put Repeated Spaces *
|
|
|
|
* Prints multiple space characters *
|
|
|
|
* Args: char n - Number of Spaces */
|
|
|
|
void putrps();
|
|
|
|
|
|
|
|
/* Put Repeated Character *
|
|
|
|
* Prints character multiple times *
|
|
|
|
* Args: char c - Character to Print *
|
|
|
|
* char n - Repeat Count */
|
|
|
|
void putrpt();
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Space *
|
|
|
|
* Prints a space character */
|
2020-09-08 15:51:30 +00:00
|
|
|
void putspc();
|
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Sesquibyte *
|
|
|
|
* Prints low three nybbles of word *
|
|
|
|
* as three hexadecimal digits *
|
|
|
|
* Args: int w - Word to Print */
|
2020-09-08 15:51:30 +00:00
|
|
|
void putsqb();
|
2019-05-27 21:12:10 +00:00
|
|
|
|
2020-10-13 16:42:03 +00:00
|
|
|
/* Put Word *
|
|
|
|
* Prints word as four-digit *
|
|
|
|
* hexadecimal number *
|
|
|
|
* Args: int w - Word to Print */
|
2019-05-27 21:12:10 +00:00
|
|
|
void putwrd();
|