diff --git a/apple1.ino b/apple1.ino index 279fca8..2be688e 100644 --- a/apple1.ino +++ b/apple1.ino @@ -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; diff --git a/io.h b/io.h index ef399b5..bfe73a3 100644 --- a/io.h +++ b/io.h @@ -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);