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

using namespace std;
using namespace machine;

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;
}