|
|
1.1 root 1: /*
1.1.1.3 root 2: Hatari - stMemory.c
1.1 root 3:
1.1.1.3 root 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:
1.1.1.4 root 7: ST Memory access functions.
1.1 root 8: */
1.1.1.5 ! root 9: char STMemory_rcsid[] = "Hatari $Id: stMemory.c,v 1.7 2005/07/15 19:30:32 thothy Exp $";
1.1 root 10:
1.1.1.4 root 11: #include "stMemory.h"
1.1.1.2 root 12:
1.1.1.4 root 13:
14: Uint8 STRam[16*1024*1024]; /* This is our ST Ram, includes all TOS/hardware areas for ease */
15: Uint32 STRamEnd; /* End of ST Ram, above this address is no-mans-land and hardware vectors */
1.1 root 16:
1.1.1.2 root 17:
18: /*-----------------------------------------------------------------------*/
1.1 root 19: /*
1.1.1.3 root 20: Clear section of ST's memory space.
1.1 root 21: */
1.1.1.5 ! root 22: void STMemory_Clear(Uint32 StartAddress, Uint32 EndAddress)
1.1 root 23: {
1.1.1.5 ! root 24: memset(&STRam[StartAddress], 0, EndAddress-StartAddress);
1.1 root 25: }
26:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.