This commit is contained in:
Stephen Crane 2019-03-28 18:02:50 +00:00
parent 1776b5b478
commit ce51301502

View File

@ -10,7 +10,7 @@
#if defined(KRUSADER) #if defined(KRUSADER)
#include "roms/krusader6502.h" #include "roms/krusader6502.h"
prom b(krusader6502, sizeof(krusader6502)); prom k(krusader6502, sizeof(krusader6502));
#else #else
#include "roms/basic.h" #include "roms/basic.h"
#include "roms/monitor.h" #include "roms/monitor.h"
@ -19,6 +19,7 @@ prom m(monitor, sizeof(monitor));
#endif #endif
ram pages[RAM_SIZE / 1024]; ram pages[RAM_SIZE / 1024];
//socket_filer files("apple1");
flash_filer files(PROGRAMS); flash_filer files(PROGRAMS);
io io(files); io io(files);
@ -26,13 +27,19 @@ r6502 cpu(memory);
const char *filename; const char *filename;
void reset() { void reset() {
bool sd = hardware_reset(); bool ok = hardware_reset();
io.reset(); io.reset();
if (sd) if (!ok) {
io.files.start(); io.status("Reset failed");
else return;
io.status("No SD Card"); }
io.files.start();
#if defined(KRUSADER)
io.status("Krusader: F000R / Basic: E000R");
#else
io.status("Basic: E000R");
#endif
} }
void setup() { void setup() {
@ -47,7 +54,7 @@ void setup() {
#endif #endif
memory.put(io, 0xd000); memory.put(io, 0xd000);
#if defined(KRUSADER) #if defined(KRUSADER)
memory.put(b, 0xe000); memory.put(k, 0xe000);
#else #else
memory.put(b, 0xe000); memory.put(b, 0xe000);
memory.put(m, 0xff00); memory.put(m, 0xff00);