Finished
This commit is contained in:
parent
705c7bcb58
commit
d50c62106e
14 changed files with 344 additions and 156 deletions
|
|
@ -1,12 +1,24 @@
|
|||
#include "../headers/machine.h"
|
||||
#include "../headers/cpu.h"
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char const *argv[]){
|
||||
machine m;
|
||||
cpu procesor(&m);
|
||||
m.loadObj("files/arithr.obj");
|
||||
//m.loadObj("files/cat.obj");
|
||||
procesor.setSpeed(100);
|
||||
procesor.start();
|
||||
//stuff
|
||||
procesor.stop();
|
||||
/*stuff
|
||||
m.setA(50); //dela
|
||||
m.getDevice(1).write(m.getA()); //dela->izpis na std izhod
|
||||
m.getDevice(1).write(10); //izpis newlinea
|
||||
m.getDevice(4).write(m.getA()); //dela->izpis v datoteko
|
||||
*/
|
||||
while (procesor.isRunning()) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
}
|
||||
|
||||
std::cout << "Program končan.\n";
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue