Skip to content

Instantly share code, notes, and snippets.

@durka
Created May 28, 2009 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save durka/119642 to your computer and use it in GitHub Desktop.
Save durka/119642 to your computer and use it in GitHub Desktop.
if (A < 0) A = Mem[-A]; /* treat negative numbers as pointers-to-pointers */
if (B < 0) B = Mem[-B];
if (C < 0) C = Mem[-C];
Mem[B] -= Mem[A]; /* as before, using the maybe-adjusted A, B, and C */
if (Mem[B] <= 0) goto C;
else goto (IP + 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment