diff options
author | bd <bdunahu@operationnull.com> | 2025-04-27 17:34:16 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-27 17:34:16 -0400 |
commit | 4f77c3161128ff965b26f9575853c5347c0d662d (patch) | |
tree | 7120db1a5d945d7309564bb3918a21a16928733b /src/controller.cc | |
parent | 3233a150e2024e9be51623f606bf15527a76cf1e (diff) |
Basic register display
Diffstat (limited to 'src/controller.cc')
-rw-r--r-- | src/controller.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/controller.cc b/src/controller.cc index 8df4b97..a84126d 100644 --- a/src/controller.cc +++ b/src/controller.cc @@ -15,6 +15,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. +#include "definitions.h" #include "controller.h" #include "ex.h" #include "response.h" @@ -47,7 +48,12 @@ void Controller::run_for(int number) int Controller::get_clock_cycle() { return this->clock_cycle; } -std::array<int, GPR_NUM> Controller::get_gprs() { return this->gprs; } +std::array<signed int, GPR_NUM> Controller::get_gprs() { return this->gprs; } + +std::array<std::array<signed int, V_R_LIMIT>, V_NUM> Controller::get_vrs() +{ + return this->vrs; +} int Controller::get_pc() { return this->pc; } |