Skip to content

Instantly share code, notes, and snippets.

@void4
Created April 13, 2018 15:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save void4/ccbfbf5293c474b971c2a9559cbc0a53 to your computer and use it in GitHub Desktop.
Save void4/ccbfbf5293c474b971c2a9559cbc0a53 to your computer and use it in GitHub Desktop.
def step(processbinary):
process = decode(processbinary)
if process.instruction == RUN:
if childStillHasResources():
child = process.memory[process.currentsandbox]
child = step(child)
else:
child.state = OUTOFRESOURCES
else:
applyCurrentInstructionToState()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment