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 #endif
ram pages[RAM_SIZE / 1024]; ram pages[RAM_SIZE / 1024];
io io(PROGRAMS); flash_filer files(PROGRAMS);
io io(files);
r6502 cpu(memory); r6502 cpu(memory);
const char *filename; const char *filename;

4
io.h
View File

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