2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
|
|
|
* Project 64 - A Nintendo 64 emulator. *
|
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
|
2010-06-29 02:11:22 +00:00
|
|
|
class CSram
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CSram ( bool ReadOnly );
|
|
|
|
~CSram ( void );
|
|
|
|
|
|
|
|
void DmaFromSram ( BYTE * dest, int StartOffset, int len);
|
|
|
|
void DmaToSram ( BYTE * Source, int StartOffset, int len);
|
|
|
|
|
|
|
|
private:
|
|
|
|
BOOL LoadSram ( void );
|
|
|
|
|
|
|
|
bool m_ReadOnly;
|
|
|
|
HANDLE m_hFile;
|
2015-01-31 19:27:27 +00:00
|
|
|
};
|