Allow terminating the VM
This commit is contained in:
parent
ddeb11bb7e
commit
b44ac1bb7d
@ -196,6 +196,11 @@ namespace vm
|
||||
return 1;
|
||||
}
|
||||
|
||||
void VirtualMachine::End()
|
||||
{
|
||||
PC = romSize+1;
|
||||
}
|
||||
|
||||
int VirtualMachine::Call(int address)
|
||||
{
|
||||
word w;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user