This commit is contained in:
Stephen Crane 2019-03-27 18:25:41 +00:00
parent 511522599d
commit 1776b5b478
2 changed files with 4 additions and 3 deletions

View File

@ -19,7 +19,8 @@ prom m(monitor, sizeof(monitor));
#endif
ram pages[RAM_SIZE / 1024];
io io(PROGRAMS);
flash_filer files(PROGRAMS);
io io(files);
r6502 cpu(memory);
const char *filename;

4
io.h
View File

@ -4,7 +4,7 @@
// http://mamedev.org/source/src/mess/machine/apple1.c.html
class io: public TFTDisplay, Keyboard, public pia {
public:
io(const char *programs): files(programs) {}
io(filer &files): files(files) {}
virtual void reset();
virtual void down(uint8_t scan);
@ -17,7 +17,7 @@ public:
virtual uint8_t read_porta_cr();
void load();
flash_filer files;
filer &files;
private:
void display(uint8_t);
void draw(char, int, int);