Closed etosch closed 12 years ago
This is something you and I coded together, a very long time ago. :)
The result register is part of the actual VM spec; this is a part of our architecture - namely that if an icodeHandler returns nothing, it means the thread should increment the pc + 1; otherwise, it should increment the pc by the value returned. This is why goto
and switch
are returning values --- if
should also return a value.
Got it!
goto/switch returning results, not setting result register - seems to be inconsistent with the model. explanation?