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-05-30 01:54:42 +00:00
|
|
|
class CRecompMemory :
|
|
|
|
protected CX86Ops
|
2010-05-25 09:15:19 +00:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
CRecompMemory();
|
|
|
|
~CRecompMemory();
|
|
|
|
|
2015-04-28 22:19:02 +00:00
|
|
|
bool AllocateMemory();
|
|
|
|
void CheckRecompMem();
|
|
|
|
void Reset();
|
|
|
|
void ShowMemUsed();
|
|
|
|
|
|
|
|
BYTE* RecompPos() const { return m_RecompPos; }
|
2010-05-25 09:15:19 +00:00
|
|
|
|
2010-05-30 01:54:42 +00:00
|
|
|
private:
|
2010-05-25 09:15:19 +00:00
|
|
|
BYTE * m_RecompCode;
|
|
|
|
DWORD m_RecompSize;
|
2015-04-28 22:19:02 +00:00
|
|
|
|
2010-05-25 09:15:19 +00:00
|
|
|
enum { MaxCompileBufferSize = 0x03C00000 };
|
|
|
|
enum { InitialCompileBufferSize = 0x00500000 };
|
|
|
|
enum { IncreaseCompileBufferSize = 0x00100000 };
|
2015-01-31 19:27:27 +00:00
|
|
|
};
|