//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// ROM emulation class //28//////////////////////////////////////////////////////////////////////////////29// //30// This class emulates the system ROM (512B), 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//////////////////////////////////////////////////////////////////////////////4344#include "system.h"45#include "rom.h"4647CRom::CRom(const uint8 *romfile, uint32 length)48{49//mWriteEnable = false;50Reset();5152std::memset(mRomData, DEFAULT_ROM_CONTENTS, ROM_SIZE);5354std::memcpy(mRomData, romfile, std::min<uint32>(ROM_SIZE, length));55}5657void CRom::Reset(void)58{59}6061SYNCFUNC(CRom)62{63//NSS(mWriteEnable);64//NSS(mRomData);65}666768