Annotation of hatari/src/stMemory.c, revision 1.1.1.4

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.4 ! root        9: char STMemory_rcsid[] = "Hatari $Id: stMemory.c,v 1.6 2004/04/23 15:33:59 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: */
                     22: void STMemory_Clear(unsigned long StartAddress, unsigned long EndAddress)
                     23: {
1.1.1.4 ! root       24:   memset((void *)((unsigned long)STRam+StartAddress), 0, EndAddress-StartAddress);
1.1       root       25: }
                     26: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.