1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-07-19 04:28:55 +00:00
C02/include/stdiox.h02

80 lines
1.9 KiB
Plaintext
Raw Normal View History

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();
/* Print Formatted Byte to Screen *
* Args: b - byte to format *
* &s - formatting string */
2018-07-27 18:11:39 +00:00
void printf();
/* 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();
/* Print Byte Zero Filled Modulo 100 *
* Args: b - Number to print */
void putdeh();
/* 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();
/* Print Byte as Zero Filled Decimal Number *
* Args: b - Number to print */
void putdez();
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();
/* 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();
2020-09-08 15:51:30 +00:00
void putwrd();
/* Print Byte as Masked Bits *
* Args: b - Byte to print *
* m - Bitmask */
void putmsk();
2020-09-08 15:51:30 +00:00
/* Print Nybble as Hexadecimal Number *
* Args: b - Number to print */
2020-09-08 15:51:30 +00:00
void putnyb();
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();
/* Print Word as Hexadecimal Number *
* Args: int w - Number to print */
void putwrd();