mirror of
https://github.com/jscrane/Apple1.git
synced 2024-10-31 12:05:16 +00:00
fix #2
This commit is contained in:
parent
1776b5b478
commit
ce51301502
21
apple1.ino
21
apple1.ino
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user