1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-28 10:51:14 +00:00
C02/include/stdiox.h02

132 lines
3.7 KiB
Plaintext
Raw Normal View History

2018-02-02 23:02:06 +00:00
/******************************************
* stdiox - Extended I/O Routines for C02 *
******************************************/
/* 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();
/* 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();
/* 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();
/* Put Binary *
* Prints byte as binary number *
* Args: char b - Number to Print */
void putbin();
/* Put Decimal *
* Prints byte as decimal number *
* Args: char b - Number to Print */
2018-02-02 23:02:06 +00:00
void putdec();
/* Put Decimal Hundred *
* Prints Byte Modulo 100 as two *
* digit zero-filled decimal number *
* Args: char b - Number to Print */
void putdeh();
/* 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 */
void putdel();
/* 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 */
void putder();
/* 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 */
void putdez();
/* Print Destination String *
* Prints string with *
* address in dstptr *
* Return: char n: Characters Printed */
2018-07-19 04:27:50 +00:00
void putdst();
/* 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();
/* Put Hexadecimal *
* Prints byte as two digit *
* hexadecimal number *
* Args: char b - Byte to Print */
void puthex();
/* 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();
/* Put Integer *
* Prints word as decimal number *
* Args: int w - Word to Print */
2020-09-08 15:51:30 +00:00
void putint();
/* 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();
/* 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();
/* 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();
/* Put Space *
* Prints a space character */
2020-09-08 15:51:30 +00:00
void putspc();
/* 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();
/* Put Word *
* Prints word as four-digit *
* hexadecimal number *
* Args: int w - Word to Print */
void putwrd();