mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
30 lines
601 B
C++
30 lines
601 B
C++
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <QHeaderView>
|
|
#include "RegViewSCU.h"
|
|
#include "COP_SCU.h"
|
|
|
|
CRegViewSCU::CRegViewSCU(QWidget* parent, CMIPS* ctx)
|
|
: CRegViewPage(parent)
|
|
, m_ctx(ctx)
|
|
{
|
|
AllocateTableEntries(2, 32);
|
|
setColumnWidth(0, 85);
|
|
horizontalHeader()->setStretchLastSection(true);
|
|
for(unsigned int x = 0; x < 32; x++)
|
|
{
|
|
setRowHeight(x, 16);
|
|
WriteTableLabel(x, CCOP_SCU::m_sRegName[x]);
|
|
}
|
|
Update();
|
|
}
|
|
|
|
void CRegViewSCU::Update()
|
|
{
|
|
const auto& state = m_ctx->m_State;
|
|
|
|
for(unsigned int i = 0; i < 32; i++)
|
|
{
|
|
WriteTableEntry(i, "0x%08X", state.nCOP0[i]);
|
|
}
|
|
}
|