|
|
1.1 ! root 1: /* ! 2: Hatari - stMemory.c ! 3: ! 4: This file is distributed under the GNU Public License, version 2 or at ! 5: your option any later version. Read the file gpl.txt for details. ! 6: ! 7: ST Memory access functions. ! 8: */ ! 9: const char STMemory_fileid[] = "Hatari stMemory.c : " __DATE__ " " __TIME__; ! 10: ! 11: #include "nextMemory.h" ! 12: #include "configuration.h" ! 13: #include "ioMem.h" ! 14: #include "log.h" ! 15: #include "memory.h" ! 16: #include "memorySnapShot.h" ! 17: ! 18: /* ! 19: * main RAM buffer (8mb for stock Next) ! 20: */ ! 21: Uint8 NEXTRam[64*1024*1024]; ! 22: ! 23: Uint32 NEXTRamEnd; /* End of ST Ram, above this address is no-mans-land and ROM/IO memory */ ! 24: ! 25: ! 26: Uint8 NEXTRom[0x20000]; ! 27: ! 28: Uint8 NEXTIo[0x20000]; ! 29: ! 30: /** ! 31: * Clear section of NEXT's memory space. ! 32: */ ! 33: void NEXTMemory_Clear(Uint32 StartAddress, Uint32 EndAddress) ! 34: { ! 35: memset(&NEXTRam[StartAddress], 0, EndAddress-StartAddress); ! 36: } ! 37: ! 38: ! 39: /** ! 40: * TODO ! 41: */ ! 42: void NEXTMemory_MemorySnapShot_Capture(bool bSave) ! 43: { ! 44: MemorySnapShot_Store(&NEXTRamEnd, sizeof(NEXTRamEnd)); ! 45: ! 46: /* Only save/restore area of memory machine is set to, eg 1Mb */ ! 47: MemorySnapShot_Store(NEXTRam, NEXTRamEnd); ! 48: } ! 49: ! 50: ! 51: /** ! 52: * TODO ! 53: */ ! 54: void NEXTMemory_SetDefaultConfig(void) ! 55: { ! 56: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.