mirror of
https://github.com/jscrane/Apple1.git
synced 2024-11-25 11:30:57 +00:00
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 [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 <UTFT.h>
|
||||||
#include <r65emu.h>
|
#include <r65emu.h>
|
||||||
|
|
||||||
#include "roms/basic.h"
|
|
||||||
#include "roms/monitor.h"
|
|
||||||
#include "pia.h"
|
#include "pia.h"
|
||||||
#include "io.h"
|
#include "io.h"
|
||||||
#include "config.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 b(basic, sizeof(basic));
|
||||||
prom m(monitor, sizeof(monitor));
|
prom m(monitor, sizeof(monitor));
|
||||||
|
#endif
|
||||||
|
|
||||||
ram pages[RAM_SIZE / 1024];
|
ram pages[RAM_SIZE / 1024];
|
||||||
io io;
|
io io;
|
||||||
|
|
||||||
@ -54,8 +60,12 @@ void setup() {
|
|||||||
|
|
||||||
memory.put(sram, SPIRAM_BASE, SPIRAM_EXTENT);
|
memory.put(sram, SPIRAM_BASE, SPIRAM_EXTENT);
|
||||||
memory.put(io, 0xd000);
|
memory.put(io, 0xd000);
|
||||||
|
#if defined(KRUSADER)
|
||||||
|
memory.put(b, 0xe000);
|
||||||
|
#else
|
||||||
memory.put(b, 0xe000);
|
memory.put(b, 0xe000);
|
||||||
memory.put(m, 0xff00);
|
memory.put(m, 0xff00);
|
||||||
|
#endif
|
||||||
|
|
||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
|
2
config.h
2
config.h
@ -11,4 +11,6 @@
|
|||||||
#define TFT_BG VGA_BLACK
|
#define TFT_BG VGA_BLACK
|
||||||
#define PROGRAMS "/apple1/"
|
#define PROGRAMS "/apple1/"
|
||||||
|
|
||||||
|
#define KRUSADER 1
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
BIN
docs/krusader13.pdf
Normal file
BIN
docs/krusader13.pdf
Normal file
Binary file not shown.
BIN
images/6502.rom
Normal file
BIN
images/6502.rom
Normal file
Binary file not shown.
BIN
images/65C02.rom
Normal file
BIN
images/65C02.rom
Normal file
Binary file not shown.
1026
roms/krusader6502.h
Normal file
1026
roms/krusader6502.h
Normal file
File diff suppressed because it is too large
Load Diff
1026
roms/krusader65c02.h
Normal file
1026
roms/krusader65c02.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user