<!-- description --> @brief Print the contents of a register <!-- inputs/outputs --> @param name the name of the register @param val the value of the register
| 174 | /// @param val the value of the register |
| 175 | /// |
| 176 | constexpr void |
| 177 | dispatch_esr_dump(bsl::string_view const &name, bsl::safe_umx const &val) noexcept |
| 178 | { |
| 179 | bsl::print() << bsl::ylw << "| "; |
| 180 | bsl::print() << bsl::rst << bsl::fmt{"<16s", name}; |
| 181 | bsl::print() << bsl::ylw << "| "; |
| 182 | if (val.is_zero()) { |
| 183 | bsl::print() << bsl::blk << " " << bsl::hex(val) << " "; |
| 184 | } |
| 185 | else { |
| 186 | bsl::print() << bsl::rst << " " << bsl::hex(val) << " "; |
| 187 | } |
| 188 | bsl::print() << bsl::ylw << "| "; |
| 189 | bsl::print() << bsl::rst << bsl::endl; |
| 190 | } |
| 191 | |
| 192 | /// <!-- description --> |
| 193 | /// @brief Print the contents of a register |