Allow terminating the VM

This commit is contained in:
Simon Robertshaw 2012-09-09 19:16:25 +01:00
parent ddeb11bb7e
commit b44ac1bb7d
2 changed files with 6 additions and 0 deletions

View File

@ -196,6 +196,11 @@ namespace vm
return 1;
}
void VirtualMachine::End()
{
PC = romSize+1;
}
int VirtualMachine::Call(int address)
{
word w;

View File

@ -120,6 +120,7 @@ public:
int LoadProgram(char * filename);
int Run();
int Call(int address);
void End();
void Marshal(int address, word element)
{
ram_t * ptr = ram+RP+address;