Play-/Source/ui_win32/RegViewVU.h
2018-04-30 21:01:23 +01:00

33 lines
667 B
C++

#pragma once
#include "RegViewPage.h"
#include "../MIPS.h"
#include "../VirtualMachine.h"
class CRegViewVU : public CRegViewPage, public boost::signals2::trackable
{
public:
CRegViewVU(HWND, const RECT&, CVirtualMachine&, CMIPS*);
virtual ~CRegViewVU() = default;
void Update() override;
protected:
long OnRightButtonUp(int, int) override;
long OnCommand(unsigned short, unsigned short, HWND) override;
private:
enum VIEWMODE
{
VIEWMODE_WORD,
VIEWMODE_SINGLE,
VIEWMODE_MAX,
};
std::string GetDisplayText();
static std::string PrintPipeline(const char*, const FLAG_PIPELINE&);
CMIPS* m_ctx = nullptr;
VIEWMODE m_viewMode = VIEWMODE_SINGLE;
};