mirror of
https://github.com/jscrane/Apple1.git
synced 2024-11-29 08:49:17 +00:00
30 lines
472 B
C
30 lines
472 B
C
|
#ifndef __SCREEN_DISP_H__
|
||
|
#define __SCREEN_DISP_H__
|
||
|
|
||
|
class screen_disp: public Display, public disp {
|
||
|
public:
|
||
|
void reset();
|
||
|
|
||
|
void checkpoint(Stream &);
|
||
|
void restore(Stream &);
|
||
|
|
||
|
void write(uint8_t);
|
||
|
void status(const char *s) { Display::status(s); }
|
||
|
|
||
|
protected:
|
||
|
static void on_tick();
|
||
|
|
||
|
void cursor(bool on);
|
||
|
|
||
|
private:
|
||
|
void draw(char, int, int);
|
||
|
|
||
|
static const uint8_t ROWS = 24;
|
||
|
static const uint8_t COLS = 40;
|
||
|
|
||
|
uint8_t r, c;
|
||
|
char screen[ROWS][COLS];
|
||
|
};
|
||
|
|
||
|
#endif
|