2019-11-20 06:06:34 +00:00
|
|
|
/***********************************
|
|
|
|
* Screen Control Routines for C02 *
|
|
|
|
***********************************/
|
|
|
|
|
|
|
|
/* Screen Modes for getscr() and setscr() *
|
|
|
|
* Invalid Modes have value $FF */
|
|
|
|
#define SMTEXT $00 //System Default Text Mode
|
|
|
|
#define SMWIDE $FF //Wide Screen Text Mode (Usuallu 80 Columns)
|
2018-01-28 18:30:49 +00:00
|
|
|
|
2018-09-17 00:30:25 +00:00
|
|
|
/* Clear the Screen */
|
2018-01-28 18:30:49 +00:00
|
|
|
void clrscn();
|
|
|
|
|
2018-09-17 00:30:25 +00:00
|
|
|
/* Move Cursor to Top Left of Screen */
|
2018-01-28 18:30:49 +00:00
|
|
|
void crsrhm();
|
|
|
|
|
2018-09-17 00:30:25 +00:00
|
|
|
/* Get Current Cursor Position *
|
|
|
|
* Returns: cursor column *
|
|
|
|
* cursor row */
|
|
|
|
char getpos();
|
2018-01-28 18:30:49 +00:00
|
|
|
|
2018-09-17 00:30:25 +00:00
|
|
|
/* Get Screen Size *
|
|
|
|
* Returns: width in columns *
|
|
|
|
* height in rows */
|
|
|
|
char getsiz();
|
2018-01-28 18:30:49 +00:00
|
|
|
|
2019-11-20 06:06:34 +00:00
|
|
|
/* Get Screen Mode *
|
|
|
|
* Returns: char mode - Current Screen Mode */
|
|
|
|
char getscr();
|
|
|
|
|
|
|
|
/* Move Cursor to Specified Position *
|
|
|
|
* Args: char col - screen column (0 = left) *
|
|
|
|
* char row - screen line (0 = top) */
|
2018-09-17 00:30:25 +00:00
|
|
|
void setpos();
|
2019-11-20 06:06:34 +00:00
|
|
|
|
|
|
|
/* Set Screen Mode *
|
|
|
|
* Args: char mode - screen mode *
|
|
|
|
* 0 = default text mode *
|
|
|
|
* Returns: $FF if Mode Invalid */
|
|
|
|
char setscr();
|