mirror of
https://github.com/jscrane/Apple1.git
synced 2024-11-26 03:49:29 +00:00
add spiram
This commit is contained in:
parent
b68f563dc6
commit
a37eaee362
@ -51,6 +51,7 @@ void setup() {
|
||||
for (unsigned i = 0; i < RAM_SIZE; i += 1024)
|
||||
memory.put(pages[i / 1024], i);
|
||||
|
||||
memory.put(sram, SPIRAM_BASE, SPIRAM_EXTENT);
|
||||
memory.put(io, 0xd000);
|
||||
memory.put(b, 0xe000);
|
||||
memory.put(m, 0xff00);
|
||||
|
3
config.h
3
config.h
@ -2,6 +2,9 @@
|
||||
#define _CONFIG_H
|
||||
|
||||
#define RAM_SIZE 4096
|
||||
#define SPIRAM_BASE 0x1000
|
||||
#define SPIRAM_EXTENT (28 * 1024 / 256)
|
||||
|
||||
#define CPU_INSTRUCTIONS 1000
|
||||
|
||||
#define TFT_FG VGA_LIME
|
||||
|
4
io.cpp
4
io.cpp
@ -181,18 +181,22 @@ io::operator byte() {
|
||||
|
||||
switch (_acc % 4) {
|
||||
case 0:
|
||||
/*
|
||||
Serial.print("<");
|
||||
Serial.print(_acc, 16);
|
||||
Serial.print(" ");
|
||||
Serial.println(kbd, 16);
|
||||
*/
|
||||
return kbd;
|
||||
case 1:
|
||||
if (kbd_int && kbd_cr >= 0x80) {
|
||||
kbd_cr = 0;
|
||||
/*
|
||||
Serial.print("<");
|
||||
Serial.print(_acc, 16);
|
||||
Serial.print(" ");
|
||||
Serial.println(0xa7, 16);
|
||||
*/
|
||||
if (_loading) {
|
||||
if (tape.more())
|
||||
enter(tape.read());
|
||||
|
Loading…
Reference in New Issue
Block a user