mirror of
https://github.com/jscrane/Apple1.git
synced 2024-11-22 06:31:37 +00:00
filer config
This commit is contained in:
parent
3dd666cf3f
commit
511522599d
5
Makefile
5
Makefile
@ -1,5 +1,10 @@
|
|||||||
t ?= esp32
|
t ?= esp32
|
||||||
|
|
||||||
|
ifeq ($t, avr)
|
||||||
|
BOARD := uno
|
||||||
|
CPPFLAGS := -DNO_CHECKPOINT -DNO_DISPLAY_BUFFER -DHARDWARE_H=\"hw/blank.h\"
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($t, esp8266)
|
ifeq ($t, esp8266)
|
||||||
BOARD := d1_mini
|
BOARD := d1_mini
|
||||||
UPLOAD_SPEED := 921600
|
UPLOAD_SPEED := 921600
|
||||||
|
@ -19,7 +19,7 @@ prom m(monitor, sizeof(monitor));
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
ram pages[RAM_SIZE / 1024];
|
ram pages[RAM_SIZE / 1024];
|
||||||
io io;
|
io io(PROGRAMS);
|
||||||
|
|
||||||
r6502 cpu(memory);
|
r6502 cpu(memory);
|
||||||
const char *filename;
|
const char *filename;
|
||||||
@ -29,7 +29,7 @@ void reset() {
|
|||||||
|
|
||||||
io.reset();
|
io.reset();
|
||||||
if (sd)
|
if (sd)
|
||||||
io.files.start(PROGRAMS);
|
io.files.start();
|
||||||
else
|
else
|
||||||
io.status("No SD Card");
|
io.status("No SD Card");
|
||||||
}
|
}
|
||||||
|
2
io.h
2
io.h
@ -4,6 +4,8 @@
|
|||||||
// 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) {}
|
||||||
|
|
||||||
virtual void reset();
|
virtual void reset();
|
||||||
virtual void down(uint8_t scan);
|
virtual void down(uint8_t scan);
|
||||||
virtual void up(uint8_t scan);
|
virtual void up(uint8_t scan);
|
||||||
|
Loading…
Reference in New Issue
Block a user