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