1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-22 01:31:33 +00:00
C02/include/stdiox.h02
2020-10-13 22:22:34 -04:00

132 lines
3.7 KiB
Plaintext

/******************************************
* 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 */
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 */
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 */
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 */
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 */
void putdst();
/* Put Extended Hexadecimal *
* Prints 24-bit value as six digit *
* hexadecimal number *
* 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 */
void putint();
/* Put Mask *
* Prints byte as binary number *
* with bits specified by mask *
* Args: char b - Byte to Print *
* char m - Bit Mask */
void putmsk();
/* Put Nybble *
* Prints low nybble of byte *
* as hexadecimal digit *
* Args: char b - Byte to Print */
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 */
void putspc();
/* Put Sesquibyte *
* Prints low three nybbles of word *
* as three hexadecimal digits *
* Args: int w - Word to Print */
void putsqb();
/* Put Word *
* Prints word as four-digit *
* hexadecimal number *
* Args: int w - Word to Print */
void putwrd();