2018-02-02 23:02:06 +00:00
|
|
|
/******************************************
|
|
|
|
* stdiox - Extended I/O Routines for C02 *
|
|
|
|
******************************************/
|
|
|
|
|
2018-07-27 18:11:39 +00:00
|
|
|
/* Display "Press any key to continue" *
|
|
|
|
* prompt and wait fo keypress *
|
|
|
|
* Returns: ASCII value of key pressed */
|
|
|
|
void anykey();
|
|
|
|
|
|
|
|
/* Display prompt and wait for keypress *
|
|
|
|
* Args: &s - string to display *
|
|
|
|
* Returns: ASCII value of key pressed */
|
|
|
|
void getcpr();
|
|
|
|
|
2018-09-17 23:44:47 +00:00
|
|
|
/* Print Formatted Byte to Screen *
|
|
|
|
* Args: b - byte to format *
|
|
|
|
* &s - formatting string */
|
2018-07-27 18:11:39 +00:00
|
|
|
void printf();
|
|
|
|
|
2018-09-17 23:44:47 +00:00
|
|
|
/* Print Byte as Binary Number *
|
|
|
|
* Args: b - Number to print */
|
|
|
|
void putbin();
|
|
|
|
|
|
|
|
/* Print Byte as Decimal Number *
|
|
|
|
* Args: b - Number to print */
|
2018-02-02 23:02:06 +00:00
|
|
|
void putdec();
|
|
|
|
|
2018-02-03 17:43:05 +00:00
|
|
|
/* Print Byte as Left Justified Decimal *
|
|
|
|
* Args: b - Number to print */
|
|
|
|
void putdel();
|
|
|
|
|
|
|
|
/* Print Byte as Right Justified Decimal *
|
|
|
|
* Args: b - Number to print */
|
|
|
|
void putder();
|
|
|
|
|
2018-07-19 04:27:50 +00:00
|
|
|
/* Print Destination String */
|
|
|
|
void putdst();
|
|
|
|
|
2020-09-08 15:51:30 +00:00
|
|
|
/* Print Extended Hexadecimal Number *
|
|
|
|
* Args: char n - High Byte *
|
|
|
|
* int w - Middle and Low Bytes */
|
|
|
|
void putexh();
|
|
|
|
|
2018-09-17 23:44:47 +00:00
|
|
|
/* Print Byte as Hexadecimal Number *
|
|
|
|
* Args: b - Number to print */
|
|
|
|
void puthex();
|
|
|
|
|
2020-09-08 15:51:30 +00:00
|
|
|
/* Print Word as Decimal Number *
|
|
|
|
* Args: int w - Number to print */
|
|
|
|
void putint();
|
2018-02-03 17:43:05 +00:00
|
|
|
|
2020-09-08 15:51:30 +00:00
|
|
|
void putwrd();
|
|
|
|
/* Print Byte as Masked Bits *
|
|
|
|
* Args: b - Byte to print *
|
|
|
|
* m - Bitmask */
|
|
|
|
void putmsk();
|
2019-05-27 21:12:10 +00:00
|
|
|
|
2020-09-08 15:51:30 +00:00
|
|
|
/* Print Nybble as Hexadecimal Number *
|
2019-05-27 21:12:10 +00:00
|
|
|
* Args: b - Number to print */
|
2020-09-08 15:51:30 +00:00
|
|
|
void putnyb();
|
2019-05-27 21:12:10 +00:00
|
|
|
|
2020-09-08 15:51:30 +00:00
|
|
|
/* Print a Space Character */
|
|
|
|
void putspc();
|
|
|
|
|
|
|
|
/* Print Word as Three Hex Digits *
|
|
|
|
* Args: int w - Number to print */
|
|
|
|
void putsqb();
|
2019-05-27 21:12:10 +00:00
|
|
|
|
|
|
|
/* Print Word as Hexadecimal Number *
|
|
|
|
* Args: int w - Number to print */
|
|
|
|
void putwrd();
|