diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-03-17 20:49:22 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-03-17 20:49:22 +0100 |
commit | e26d895762e7a802c4b6c6a970a63309f7d0fdb7 (patch) | |
tree | f2ccf9698c8eca31d78fe611963293338326e6c1 /qtmips_gui/cop0dock.h | |
parent | 6312493089c8325fa6097fa7d77046bde7e75f2a (diff) | |
download | qtmips-e26d895762e7a802c4b6c6a970a63309f7d0fdb7.tar.gz qtmips-e26d895762e7a802c4b6c6a970a63309f7d0fdb7.tar.bz2 qtmips-e26d895762e7a802c4b6c6a970a63309f7d0fdb7.zip |
Registers and cop0 state updates and reads are visualized by highlights.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui/cop0dock.h')
-rw-r--r-- | qtmips_gui/cop0dock.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qtmips_gui/cop0dock.h b/qtmips_gui/cop0dock.h index 5dfa058..79f8a3e 100644 --- a/qtmips_gui/cop0dock.h +++ b/qtmips_gui/cop0dock.h @@ -41,6 +41,7 @@ #include <QFormLayout> #include <QScrollArea> #include <QPropertyAnimation> +#include <QPalette> #include "qtmipsmachine.h" #include "statictable.h" @@ -54,12 +55,20 @@ public: private slots: void cop0reg_changed(enum machine::Cop0State::Cop0Registers reg, std::uint32_t val); + void cop0reg_read(enum machine::Cop0State::Cop0Registers reg, std::uint32_t val); + void clear_highlights(); private: StaticTable *widg; QScrollArea *scrollarea; QLabel *cop0reg[machine::Cop0State::COP0REGS_CNT]; + bool cop0reg_highlighted[machine::Cop0State::COP0REGS_CNT]; + bool cop0reg_highlighted_any; + + QPalette pal_normal; + QPalette pal_updated; + QPalette pal_read; void labelVal(QLabel *label, std::uint32_t val); }; |