aboutsummaryrefslogtreecommitdiff
path: root/qtmips_cli/tracer.cpp
blob: 5cbf3395a32b4a7d9b36881efb2fd910887e6321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "tracer.h"
#include <iostream>

using namespace std;

Tracer::Tracer(QtMipsMachine *machine) {
    this->machine = machine;
}

void Tracer::reg_pc() {
    connect(machine->registers(), SIGNAL(pc_update(std::uint32_t)), this, SLOT(regs_pc_update(std::uint32_t)));
}

void Tracer::regs_pc_update(std::uint32_t val) {
    cout << "PC:" << hex << val << endl;
}