From 1776b5b4782df63945a5429836da64e778948bdc Mon Sep 17 00:00:00 2001 From: Stephen Crane Date: Wed, 27 Mar 2019 18:25:41 +0000 Subject: [PATCH] fix #1 --- apple1.ino | 3 ++- io.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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);