mirror of
https://github.com/jscrane/Apple1.git
synced 2024-11-26 03:49:29 +00:00
esp8266 port
This commit is contained in:
parent
5fc03bac8d
commit
b69674899c
27
apple1.ino
27
apple1.ino
@ -1,9 +1,26 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <SPI.h>
|
|
||||||
#include <SD.h>
|
|
||||||
#include <SpiRAM.h>
|
|
||||||
#include <UTFT.h>
|
|
||||||
#include <r65emu.h>
|
#include <r65emu.h>
|
||||||
|
|
||||||
|
#include <SPI.h>
|
||||||
|
#if defined(USE_UTFT)
|
||||||
|
//#include <UTFT.h>
|
||||||
|
#elif defined(USE_ESPI)
|
||||||
|
#include <TFT_eSPI.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(USE_SD)
|
||||||
|
#include <SD.h>
|
||||||
|
#elif defined(USE_SPIFFS)
|
||||||
|
#include <FS.h>
|
||||||
|
#include <SPIFFS.h>
|
||||||
|
#elif defined(ESP8266)
|
||||||
|
#include <FS.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(SPIRAM_CS)
|
||||||
|
#include <SpiRAM.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <r6502.h>
|
#include <r6502.h>
|
||||||
|
|
||||||
#include "pia.h"
|
#include "pia.h"
|
||||||
@ -43,7 +60,9 @@ void setup() {
|
|||||||
for (unsigned i = 0; i < RAM_SIZE; i += 1024)
|
for (unsigned i = 0; i < RAM_SIZE; i += 1024)
|
||||||
memory.put(pages[i / 1024], i);
|
memory.put(pages[i / 1024], i);
|
||||||
|
|
||||||
|
#if defined(SPIRAM_CS)
|
||||||
memory.put(sram, SPIRAM_BASE, SPIRAM_EXTENT);
|
memory.put(sram, SPIRAM_BASE, SPIRAM_EXTENT);
|
||||||
|
#endif
|
||||||
memory.put(io, 0xd000);
|
memory.put(io, 0xd000);
|
||||||
#if defined(KRUSADER)
|
#if defined(KRUSADER)
|
||||||
memory.put(b, 0xe000);
|
memory.put(b, 0xe000);
|
||||||
|
Loading…
Reference in New Issue
Block a user