From 511522599d6b1ff157d8a18594284197da9b8582 Mon Sep 17 00:00:00 2001 From: Stephen Crane Date: Tue, 26 Mar 2019 19:34:49 +0000 Subject: [PATCH] filer config --- Makefile | 5 +++++ apple1.ino | 4 ++-- io.h | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9c8729b..afc37f6 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,10 @@ t ?= esp32 +ifeq ($t, avr) +BOARD := uno +CPPFLAGS := -DNO_CHECKPOINT -DNO_DISPLAY_BUFFER -DHARDWARE_H=\"hw/blank.h\" +endif + ifeq ($t, esp8266) BOARD := d1_mini UPLOAD_SPEED := 921600 diff --git a/apple1.ino b/apple1.ino index 48aa0c2..279fca8 100644 --- a/apple1.ino +++ b/apple1.ino @@ -19,7 +19,7 @@ prom m(monitor, sizeof(monitor)); #endif ram pages[RAM_SIZE / 1024]; -io io; +io io(PROGRAMS); r6502 cpu(memory); const char *filename; @@ -29,7 +29,7 @@ void reset() { io.reset(); if (sd) - io.files.start(PROGRAMS); + io.files.start(); else io.status("No SD Card"); } diff --git a/io.h b/io.h index 3effc4f..ef399b5 100644 --- a/io.h +++ b/io.h @@ -4,6 +4,8 @@ // http://mamedev.org/source/src/mess/machine/apple1.c.html class io: public TFTDisplay, Keyboard, public pia { public: + io(const char *programs): files(programs) {} + virtual void reset(); virtual void down(uint8_t scan); virtual void up(uint8_t scan);