mirror of
https://github.com/jscrane/Apple1.git
synced 2024-12-21 12:29:51 +00:00
39 lines
688 B
C
39 lines
688 B
C
#ifndef __CONFIG_H__
|
|
#define __CONFIG_H__
|
|
|
|
#define RAM_TOP 0xd000u
|
|
|
|
#if (RAM_SIZE >= RAM_TOP)
|
|
#define RAM_PAGES (RAM_TOP / ram::page_size)
|
|
|
|
#elif defined(USE_SPIRAM)
|
|
#define RAM_PAGES (RAM_SIZE / ram::page_size)
|
|
#define SPIRAM_BASE RAM_SIZE
|
|
#define SPIRAM_EXTENT min(RAM_TOP - SPIRAM_BASE, SPIRAM_SIZE) / Memory::page_size
|
|
|
|
#else
|
|
#define RAM_PAGES (RAM_SIZE / ram::page_size)
|
|
|
|
#endif
|
|
|
|
#define CPU_INSTRUCTIONS 1000
|
|
|
|
#define TFT_FG GREEN
|
|
#define TFT_BG BLACK
|
|
|
|
#if defined(USE_UTFT)
|
|
#define TFT_ORIENT landscape
|
|
#elif defined(USE_ESPI)
|
|
#define TFT_ORIENT reverse_landscape
|
|
#endif
|
|
|
|
#if defined(USE_SD)
|
|
#define PROGRAMS "/apple1/"
|
|
#else
|
|
#define PROGRAMS "/"
|
|
#endif
|
|
|
|
#define KRUSADER
|
|
|
|
#endif
|