From 9cf92379d5fcf0076c25dae0935daab446c992cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 30 Aug 2017 21:37:53 +0200 Subject: Initial commit Adding work done so far. --- qtmips_machine/qtmipsmachine.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 qtmips_machine/qtmipsmachine.h (limited to 'qtmips_machine/qtmipsmachine.h') diff --git a/qtmips_machine/qtmipsmachine.h b/qtmips_machine/qtmipsmachine.h new file mode 100644 index 0000000..af981b3 --- /dev/null +++ b/qtmips_machine/qtmipsmachine.h @@ -0,0 +1,25 @@ +#ifndef QTMIPSMACHINE_H +#define QTMIPSMACHINE_H + +#include + +#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 -- cgit v1.2.3