diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-09 16:55:03 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-09 16:55:03 (GMT) |
| commit | 2d2f8713bc86fe02aa6eae3fcb56365d39a65b21 (patch) | |
| tree | 81232229f92b7684bfcdf0af82e4d17dbef4ab43 /src/tests/VirtualMachineTest.cpp | |
| parent | 7b05862cfe69ece782493b9f3f78338262e569bd (diff) | |
| download | powder-2d2f8713bc86fe02aa6eae3fcb56365d39a65b21.zip powder-2d2f8713bc86fe02aa6eae3fcb56365d39a65b21.tar.gz | |
Move opcodes and syscalls out of main virtualmachine coee
Diffstat (limited to 'src/tests/VirtualMachineTest.cpp')
| -rw-r--r-- | src/tests/VirtualMachineTest.cpp | 8 |
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 |
