2016-01-27 09:39:46 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
|
|
|
* Project64 - 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
|
|
|
|
#include <Project64-core/Settings/DebugSettings.h>
|
|
|
|
|
|
|
|
class CEeprom :
|
2018-02-16 05:38:00 +00:00
|
|
|
protected CDebugSettings
|
2016-01-27 09:39:46 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CEeprom(bool ReadOnly);
|
|
|
|
~CEeprom();
|
|
|
|
|
|
|
|
void EepromCommand(uint8_t * Command);
|
|
|
|
|
|
|
|
private:
|
|
|
|
CEeprom(void); // Disable default constructor
|
|
|
|
CEeprom(const CEeprom&); // Disable copy constructor
|
|
|
|
CEeprom& operator=(const CEeprom&); // Disable assignment
|
|
|
|
|
2018-02-16 05:38:00 +00:00
|
|
|
void ProcessingError(uint8_t * Command);
|
2016-01-27 09:39:46 +00:00
|
|
|
void LoadEeprom();
|
|
|
|
void ReadFrom(uint8_t * Buffer, int32_t line);
|
|
|
|
void WriteTo(uint8_t * Buffer, int32_t line);
|
|
|
|
|
|
|
|
uint8_t m_EEPROM[0x800];
|
|
|
|
bool m_ReadOnly;
|
|
|
|
CFile m_File;
|
|
|
|
};
|