diff options
author | Karel Kočí <cynerd@email.cz> | 2017-08-30 21:37:53 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-08-30 21:42:02 +0200 |
commit | 9cf92379d5fcf0076c25dae0935daab446c992cd (patch) | |
tree | dd09a2e996db1e5a8117f01bec76f1e93eaca6e1 /qtmips_machine/qtmipsmachine.h | |
download | qtmips-9cf92379d5fcf0076c25dae0935daab446c992cd.tar.gz qtmips-9cf92379d5fcf0076c25dae0935daab446c992cd.tar.bz2 qtmips-9cf92379d5fcf0076c25dae0935daab446c992cd.zip |
Initial commit
Adding work done so far.
Diffstat (limited to 'qtmips_machine/qtmipsmachine.h')
-rw-r--r-- | qtmips_machine/qtmipsmachine.h | 25 |
1 files changed, 25 insertions, 0 deletions
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 <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 |