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_cli/machineapp.cpp | |
download | qtmips-9cf92379d5fcf0076c25dae0935daab446c992cd.tar.gz qtmips-9cf92379d5fcf0076c25dae0935daab446c992cd.tar.bz2 qtmips-9cf92379d5fcf0076c25dae0935daab446c992cd.zip |
Initial commit
Adding work done so far.
Diffstat (limited to 'qtmips_cli/machineapp.cpp')
-rw-r--r-- | qtmips_cli/machineapp.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/qtmips_cli/machineapp.cpp b/qtmips_cli/machineapp.cpp new file mode 100644 index 0000000..09fcd3e --- /dev/null +++ b/qtmips_cli/machineapp.cpp @@ -0,0 +1,11 @@ +#include "machineapp.h" +#include <iostream> + +MachineApp::MachineApp(int argc, char **argv) : QCoreApplication(argc, argv) { + connect(this, SIGNAL(aboutToQuit()), this, SLOT(quit())); + // TODO drop hello + std::cout << "Hello\n"; + std::cout.flush(); + // TODO check argc + this->machine = new QtMipsMachine(argv[1]); +} |