]> git.sesse.net Git - pistorm/blob - platforms/amiga/amiga-autoconf.h
[WIP] Add platforms, Z2 config file-based autoconf Fast
[pistorm] / platforms / amiga / amiga-autoconf.h
1 #define AC_BASE 0xE80000
2 #define AC_SIZE (64 * 1024)
3 #define AC_PIC_LIMIT 8
4
5 #define AC_MEM_SIZE_8MB 0
6 #define AC_MEM_SIZE_64KB 1
7 #define AC_MEM_SIZE_128KB 2
8 #define AC_MEM_SIZE_256KB 3
9 #define AC_MEM_SIZE_512KB 4
10 #define AC_MEM_SIZE_1MB 5
11 #define AC_MEM_SIZE_2MB 6
12 #define AC_MEM_SIZE_4MB 7
13
14 enum autoconf_types {
15     ACTYPE_MAPFAST_Z2,
16     ACTYPE_MAPFAST_Z3,
17     ACTYPE_A314,
18     ACTYPE_NUM,
19 };
20
21 unsigned int autoconfig_read_memory_8(struct emulator_config *cfg, unsigned int address);
22 void autoconfig_write_memory_8(struct emulator_config *cfg, unsigned int address, unsigned int value);