mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-03 04:52:35 +02:00
Allow terminating the VM
This commit is contained in:
@@ -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