summaryrefslogtreecommitdiff
path: root/src/tests/VirtualMachineTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/VirtualMachineTest.cpp')
-rw-r--r--src/tests/VirtualMachineTest.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tests/VirtualMachineTest.cpp b/src/tests/VirtualMachineTest.cpp
index 0bf9bef..ee92999 100644
--- a/src/tests/VirtualMachineTest.cpp
+++ b/src/tests/VirtualMachineTest.cpp
@@ -7,8 +7,10 @@ int main(int argc, char * argv[])
{
vm::VirtualMachine * vm = new vm::VirtualMachine(2);
vm->LoadProgram("test.qvm");
- vm->Call(0/*, 0, 88, 12*/);
- std::cout << "Return value: " << vm->Pop<vm::uint4_t>() << std::endl;
- //vm->Run();
+ while(true)
+ {
+ vm->Call(0/*, 0, 88, 12*/);
+ std::cout << "Return value: " << vm->Pop<vm::uint4_t>() << std::endl;
+ }
}
#endif \ No newline at end of file