Play-/Source/BasicBlock.h

36 lines
653 B
C
Raw Normal View History

#pragma once
#include "MIPS.h"
#include "MemoryFunction.h"
namespace Jitter
{
class CJitter;
};
class CBasicBlock
{
public:
CBasicBlock(CMIPS&, uint32, uint32);
virtual ~CBasicBlock();
unsigned int Execute();
void Compile();
uint32 GetBeginAddress() const;
uint32 GetEndAddress() const;
bool IsCompiled() const;
unsigned int GetSelfLoopCount() const;
void SetSelfLoopCount(unsigned int);
protected:
uint32 m_begin;
uint32 m_end;
CMIPS& m_context;
virtual void CompileRange(CMipsJitter*);
private:
CMemoryFunction m_function;
unsigned int m_selfLoopCount;
};