//1// Copyright (c) 2004 K. Wilkins2//3// This software is provided 'as-is', without any express or implied warranty.4// In no event will the authors be held liable for any damages arising from5// the use of this software.6//7// Permission is granted to anyone to use this software for any purpose,8// including commercial applications, and to alter it and redistribute it9// freely, subject to the following restrictions:10//11// 1. The origin of this software must not be misrepresented; you must not12// claim that you wrote the original software. If you use this software13// in a product, an acknowledgment in the product documentation would be14// appreciated but is not required.15//16// 2. Altered source versions must be plainly marked as such, and must not17// be misrepresented as being the original software.18//19// 3. This notice may not be removed or altered from any source distribution.20//2122//////////////////////////////////////////////////////////////////////////////23// Handy - An Atari Lynx Emulator //24// Copyright (c) 1996,1997 //25// K. Wilkins //26//////////////////////////////////////////////////////////////////////////////27// RAM emulation class //28//////////////////////////////////////////////////////////////////////////////29// //30// This class emulates the system RAM (64KB), the interface is pretty //31// simple: constructor, reset, peek, poke. //32// //33// K. Wilkins //34// August 1997 //35// //36//////////////////////////////////////////////////////////////////////////////37// Revision History: //38// ----------------- //39// //40// 01Aug1997 KW Document header added & class documented. //41// //42//////////////////////////////////////////////////////////////////////////////434445#define RAM_CPP4647#include "system.h"48#include "ram.h"4950CRam::CRam()51{52Reset();53}5455CRam::~CRam()56{57}5859void CRam::Reset(void)60{61//MDFNMP_AddRAM(65536, 0x0000, mRamData);62std::memset(mRamData, DEFAULT_RAM_CONTENTS, RAM_SIZE);63}6465SYNCFUNC(CRam)66{67NSS(mRamData);68}697071