1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-22 16:34:15 +00:00
C02/include/oric.h02
2020-04-27 12:20:37 -04:00

33 lines
1.2 KiB
Plaintext

/* C02 Standard Header for Oric-1 */
/* System Specific ASCII Key Codes */
#define DELKEY $7F //Delete/Backspace Key
#define ESCKEY $1B //Escape/Stop Key
#define RTNKEY $0D //Return/Enter Key
/* Zero Page Variables used as Pointers */
char srclo,srchi; //String pointer for String and I/O functions
char dstlo,dsthi; //Secondary string pointer for String functions
char bfrlo,bfrhi; //Buffer Pointer for Library Functions
/* Temporary Variables */
char temp0,temp1,temp2,temp3;
/* Static Library Variables */
char random; //Last Result of Pseudo-Random Number Generator
char rdseed; //System Seed for Pseudo-Random Number Generator
/* System Subroutines */
char polkey(); //Poll Console for character
char getchr(); //Wait for character from Console
char getkey(); //Read ASCII character from Console
void newlin(); //Advance cursor to beginning of next line
char putchr(); //Print ASCII character to Console
char putstr(); //Print ASCII string to Console
void prbyte(); //Print Accumulator as Hexadadecimal number
void prhex(); //Print Low Nybble of Accumulator as Hex Digit
//System Labels
start: //Start of Code
exit: //Return to Operating System