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_cli/machineapp.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 qtmips_cli/machineapp.cpp (limited to 'qtmips_cli/machineapp.cpp') 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 + +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]); +} -- cgit v1.2.3