From e26d895762e7a802c4b6c6a970a63309f7d0fdb7 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Sun, 17 Mar 2019 20:49:22 +0100 Subject: Registers and cop0 state updates and reads are visualized by highlights. Signed-off-by: Pavel Pisa --- qtmips_gui/cop0dock.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'qtmips_gui/cop0dock.h') 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 #include #include +#include #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); }; -- cgit v1.2.3