filer config

This commit is contained in:
Stephen Crane 2019-03-26 19:34:49 +00:00
parent 3dd666cf3f
commit 511522599d
3 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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");
}

2
io.h
View File

@ -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);