1 |
|
/* |
2 |
|
* mem.cpp - Emulator memory management |
3 |
|
* |
4 |
< |
* SIDPlayer (C) Copyright 1996-2003 Christian Bauer |
4 |
> |
* SIDPlayer (C) Copyright 1996-2004 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
37 |
|
* Init memory management |
38 |
|
*/ |
39 |
|
|
40 |
< |
void MemoryInit(void) |
40 |
> |
void MemoryInit() |
41 |
|
{ |
42 |
|
// Clear memory contents |
43 |
|
MemoryClear(); |
48 |
|
* Exit memory management |
49 |
|
*/ |
50 |
|
|
51 |
< |
void MemoryExit(void) |
51 |
> |
void MemoryExit() |
52 |
|
{ |
53 |
|
} |
54 |
|
|
57 |
|
* Clear memory contents |
58 |
|
*/ |
59 |
|
|
60 |
< |
void MemoryClear(void) |
60 |
> |
void MemoryClear() |
61 |
|
{ |
62 |
|
memset(ram, 0, RAM_SIZE - 0x2000); |
63 |
|
memset(ram + 0xe000, 0x40, 0x2000); // Fill kernal ROM area with RTI |