2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
2015-11-10 05:21:49 +00:00
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
2012-12-19 09:30:18 +00:00
|
|
|
* 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
|
|
|
|
|
2015-12-13 07:07:03 +00:00
|
|
|
class CSram
|
2010-06-29 02:11:22 +00:00
|
|
|
{
|
|
|
|
public:
|
2015-12-13 07:07:03 +00:00
|
|
|
CSram(bool ReadOnly);
|
|
|
|
~CSram();
|
2010-06-29 02:11:22 +00:00
|
|
|
|
2015-12-13 07:07:03 +00:00
|
|
|
void DmaFromSram(uint8_t * dest, int StartOffset, int len);
|
|
|
|
void DmaToSram(uint8_t * Source, int StartOffset, int len);
|
2010-06-29 02:11:22 +00:00
|
|
|
|
|
|
|
private:
|
2015-12-13 07:07:03 +00:00
|
|
|
bool LoadSram();
|
2010-06-29 02:11:22 +00:00
|
|
|
|
2015-12-13 07:07:03 +00:00
|
|
|
bool m_ReadOnly;
|
2015-12-06 09:59:58 +00:00
|
|
|
void * m_hFile;
|
2015-01-31 19:27:27 +00:00
|
|
|
};
|