1
0
Fork 0

Add struct and map for relative register positions

This commit is contained in:
dl471 2019-03-04 08:21:50 +00:00 committed by Duncan Ogilvie
parent 6e18613e37
commit e68720777d
1 changed files with 19 additions and 0 deletions

View File

@ -112,6 +112,23 @@ public:
} }
}; };
// tracks position of a register relative to other registers
struct Register_Relative_Position
{
REGISTER_NAME left;
REGISTER_NAME right;
Register_Relative_Position(REGISTER_NAME l, REGISTER_NAME r)
{
left = l;
right = r;
}
Register_Relative_Position()
{
left = UNKNOWN;
right = UNKNOWN;
}
};
explicit RegistersView(CPUWidget* parent); explicit RegistersView(CPUWidget* parent);
~RegistersView(); ~RegistersView();
@ -244,6 +261,8 @@ private:
QMap<REGISTER_NAME, QString> mRegisterMapping; QMap<REGISTER_NAME, QString> mRegisterMapping;
// contains viewport positions // contains viewport positions
QMap<REGISTER_NAME, Register_Position> mRegisterPlaces; QMap<REGISTER_NAME, Register_Position> mRegisterPlaces;
// contains names of closest registers in view
QMap<REGISTER_NAME, Register_Relative_Position> mRegisterRelativePlaces;
// contains a dump of the current register values // contains a dump of the current register values
REGDUMP wRegDumpStruct; REGDUMP wRegDumpStruct;
REGDUMP wCipRegDumpStruct; REGDUMP wCipRegDumpStruct;