add krusader rom and make config option
This commit is contained in:
parent
82c51380f1
commit
fe71ccd497
|
@ -2,3 +2,4 @@ Apple-1 Emulator
|
|||
================
|
||||
|
||||
- see [napple1](https://github.com/nobuh/napple1)
|
||||
- see also [krusader](http://school.anhb.uwa.edu.au/personalpages/kwessen/apple1/Krusader.htm)
|
||||
|
|
14
apple1.ino
14
apple1.ino
|
@ -5,14 +5,20 @@
|
|||
#include <UTFT.h>
|
||||
#include <r65emu.h>
|
||||
|
||||
#include "roms/basic.h"
|
||||
#include "roms/monitor.h"
|
||||
#include "pia.h"
|
||||
#include "io.h"
|
||||
#include "config.h"
|
||||
|
||||
#if defined(KRUSADER)
|
||||
#include "roms/krusader6502.h"
|
||||
prom b(krusader6502, sizeof(krusader6502));
|
||||
#else
|
||||
#include "roms/basic.h"
|
||||
#include "roms/monitor.h"
|
||||
prom b(basic, sizeof(basic));
|
||||
prom m(monitor, sizeof(monitor));
|
||||
#endif
|
||||
|
||||
ram pages[RAM_SIZE / 1024];
|
||||
io io;
|
||||
|
||||
|
@ -54,8 +60,12 @@ void setup() {
|
|||
|
||||
memory.put(sram, SPIRAM_BASE, SPIRAM_EXTENT);
|
||||
memory.put(io, 0xd000);
|
||||
#if defined(KRUSADER)
|
||||
memory.put(b, 0xe000);
|
||||
#else
|
||||
memory.put(b, 0xe000);
|
||||
memory.put(m, 0xff00);
|
||||
#endif
|
||||
|
||||
reset();
|
||||
}
|
||||
|
|
2
config.h
2
config.h
|
@ -11,4 +11,6 @@
|
|||
#define TFT_BG VGA_BLACK
|
||||
#define PROGRAMS "/apple1/"
|
||||
|
||||
#define KRUSADER 1
|
||||
|
||||
#endif
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue