Skip to content

Instantly share code, notes, and snippets.

@LTe
Created June 9, 2010 18:41
Show Gist options
  • Save LTe/431951 to your computer and use it in GitHub Desktop.
Save LTe/431951 to your computer and use it in GitHub Desktop.
generujKod("ZERO", -1);
context_check("ADD", $3);
generujKod("JZ", generujEtykiete()+32);
context_check("STORE", "xB");
context_check("LOAD", $1);
context_check("STORE", "xA");
context_check("LOAD", "#jeden");
context_check("STORE", "xD");
context_check("LOAD", $3);
context_check("STORE", "xC");
context_check("ADD", "xC");
context_check("SUB", "xA");
generujKod("JGE", generujEtykiete()+9);
context_check("LOAD", "xD");
context_check("ADD", "xD");
context_check("STORE", "xD");
context_check("LOAD", "xC");
context_check("ADD", "xC");
context_check("STORE", "xC");
context_check("ADD", "xC");
generujKod("JUMP", generujEtykiete()-9); //
context_check("LOAD", "xC");
context_check("SUB", "xA");
generujKod("JGE", generujEtykiete()+7);
context_check("LOAD", "xA");
context_check("SUB", "xC");
context_check("STORE", "xA");
context_check("LOAD", "xB");
context_check("ADD", "xD");
context_check("STORE", "xB");
context_check("LOAD", $3);
context_check("SUB", "xA");
generujKod("JGE", generujEtykiete()+4);
generujKod("JUMP", generujEtykiete()-27);
generujKod("ZERO", -1);
generujKod("JUMP", generujEtykiete()+2);
context_check("LOAD", "xB");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment