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 *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
2010-06-04 06:25:07 +00:00
|
|
|
#include "stdafx.h"
|
2015-12-06 09:59:58 +00:00
|
|
|
#include "FunctionInfo.h"
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2010-05-30 01:54:42 +00:00
|
|
|
CCompiledFunc::CCompiledFunc( const CCodeBlock & CodeBlock ) :
|
2015-11-09 20:07:54 +00:00
|
|
|
m_EnterPC(CodeBlock.VAddrEnter()),
|
|
|
|
m_MinPC(CodeBlock.VAddrFirst()),
|
|
|
|
m_MaxPC(CodeBlock.VAddrLast()),
|
|
|
|
m_Hash(CodeBlock.Hash()),
|
|
|
|
m_Function((Func)CodeBlock.CompiledLocation()),
|
|
|
|
m_Next(NULL)
|
2010-05-30 01:54:42 +00:00
|
|
|
{
|
2015-11-09 20:07:54 +00:00
|
|
|
m_MemContents[0] = CodeBlock.MemContents(0);
|
|
|
|
m_MemContents[1] = CodeBlock.MemContents(1);
|
|
|
|
m_MemLocation[0] = CodeBlock.MemLocation(0);
|
|
|
|
m_MemLocation[1] = CodeBlock.MemLocation(1);
|
2010-05-30 01:54:42 +00:00
|
|
|
}
|