2010-05-30 01:54:42 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CCodeBlock;
|
|
|
|
|
|
|
|
class CCodeSection :
|
|
|
|
private CRecompilerOps
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CCodeSection( CCodeBlock * CodeBlock, DWORD EnterPC, DWORD ID);
|
|
|
|
~CCodeSection( void );
|
|
|
|
|
2010-06-04 06:25:07 +00:00
|
|
|
void CompileCop1Test ( void );
|
2010-05-30 01:54:42 +00:00
|
|
|
bool GenerateX86Code ( DWORD Test );
|
|
|
|
void GenerateSectionLinkage ( void );
|
|
|
|
void CompileSystemCheck ( DWORD TargetPC, const CRegInfo &RegSet );
|
2010-06-04 06:25:07 +00:00
|
|
|
void CompileExit ( DWORD JumpPC, DWORD TargetPC, CRegInfo ExitRegSet, CExitInfo::EXIT_REASON reason, int CompileNow, void (*x86Jmp)(const char * Label, DWORD Value));
|
2010-05-30 01:54:42 +00:00
|
|
|
|
|
|
|
/* Block Connection info */
|
|
|
|
CCodeBlock * const m_BlockInfo;
|
|
|
|
const DWORD m_EnterPC;
|
|
|
|
const DWORD m_SectionID;
|
|
|
|
CCodeSection * m_ContinueSection;
|
|
|
|
CCodeSection * m_JumpSection;
|
|
|
|
bool m_LinkAllowed; // are other sections allowed to find block to link to it
|
|
|
|
DWORD m_Test;
|
|
|
|
BYTE * m_CompiledLocation;
|
2010-06-07 02:23:58 +00:00
|
|
|
bool m_DelaySlotSection;
|
2010-05-30 01:54:42 +00:00
|
|
|
|
|
|
|
/* SECTION_LIST ParentSection;
|
|
|
|
DWORD Test2;
|
|
|
|
bool InLoop;
|
|
|
|
|
|
|
|
|
|
|
|
/* Register Info */
|
|
|
|
CRegInfo m_RegEnter;
|
|
|
|
|
|
|
|
/* Jump Info */
|
|
|
|
CJumpInfo m_Jump;
|
|
|
|
CJumpInfo m_Cont;
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
};
|
|
|
|
|