aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/qtmipsmachine.h
blob: af981b37f6b60c4ae2722e9e74efefc50df134cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef QTMIPSMACHINE_H
#define QTMIPSMACHINE_H

#include <QObject>

#include "qtmipsexception.h"
#include "programloader.h"
#include "core.h"
// TODO piplined core

class QtMipsMachine : QObject {
    Q_OBJECT
public:
    QtMipsMachine(char *file);

    // TODO handle speed
    void play();
    void pause();
    void step();
    void restart();
private:
    ProgramLoader *loader;
};

#endif // QTMIPSMACHINE_H