mirror of
https://github.com/MiSTer-devel/Atari800_MiSTer.git
synced 2026-05-24 03:02:55 +00:00
* Update sys * Support all 32MB of SDRAM + MegaCart 4MB * Forgotten non-VBXE detail for 32MB --------- Co-authored-by: jackyangantelope <jack@retroremake.co>
32 lines
883 B
C
32 lines
883 B
C
#ifndef MEMORY_H
|
|
#define MEMORY_H
|
|
|
|
// #define SRAM_BASE ((void*) 0x200000)
|
|
#define SDRAM_BASE ((void*) 0x2000000)
|
|
|
|
// Memory usage...
|
|
// 0x410000-0x44FFFF (0xc10000 in zpu space) = directory cache - 256k
|
|
// 0x450000-0x46FFFF (0xc50000 in zpu space) = freeze backup
|
|
// 0x700000-0x77FFFF (0xf00000 in zpu space) = os rom/basic rom
|
|
|
|
#define INIT_MEM
|
|
|
|
#define DIR_INIT_MEM (SDRAM_BASE + 0x410000)
|
|
#define DIR_INIT_MEMSIZE 262144
|
|
#define FREEZE_MEM (SDRAM_BASE + 0x450000)
|
|
#define FREEZER_RAM_MEM (SDRAM_BASE + 0x480000)
|
|
#define FREEZER_ROM_MEM (SDRAM_BASE + 0x4A0000)
|
|
#define HAVE_FREEZER_ROM_MEM 1
|
|
|
|
#define CARTRIDGE_MEM (SDRAM_BASE + 0x800000)
|
|
|
|
// offset into SDRAM Currently not valid
|
|
// #define ROM_OFS 0x700000
|
|
|
|
#define atari_regbase ((void*) 0x10000)
|
|
#define atari_regmirror ((void*) 0x20000)
|
|
#define zpu_regbase ((void*) 0x40000)
|
|
#define pokey_regbase ((void*) 0x40400)
|
|
|
|
#endif
|