Apple1-esp/io.h

30 lines
433 B
C
Raw Normal View History

2014-11-11 17:13:25 +00:00
#ifndef _IO_H
#define _IO_H
2014-11-14 11:45:28 +00:00
class io: public UTFTDisplay, Keyboard {
2014-11-11 17:13:25 +00:00
public:
io(): UTFTDisplay(256) {}
void operator=(byte);
operator byte();
2014-11-12 08:28:32 +00:00
virtual void reset();
virtual void down(byte scan);
virtual void up(byte scan);
2014-11-11 17:13:25 +00:00
void checkpoint(Stream &);
void restore(Stream &);
2014-11-14 11:45:28 +00:00
void load();
sdtape tape;
2014-11-11 17:13:25 +00:00
private:
void display(byte);
2014-11-12 08:28:32 +00:00
void draw(char, int, int);
2014-11-14 11:45:28 +00:00
void enter(byte);
2014-11-11 17:13:25 +00:00
2014-11-12 08:28:32 +00:00
bool _shift;
2014-11-14 11:45:28 +00:00
bool _loading;
2014-11-11 17:13:25 +00:00
};
#endif