Skip to content

Instantly share code, notes, and snippets.

@Generickle
Created January 5, 2019 05:16
Show Gist options
  • Save Generickle/1ce55b323b14640b9ff4ef5ca65aae07 to your computer and use it in GitHub Desktop.
Save Generickle/1ce55b323b14640b9ff4ef5ca65aae07 to your computer and use it in GitHub Desktop.
Falta arreglar la potencia y la impresión.
P = 0;
H = 0;
S = 0;
void principal(){
t1 = P + 2;
t2 = 12 ^ 2;
t3 = 43 + t2;
if(t3 >= 3) goto L1;
goto L2;
L1:
if(1 == 1) goto L3;
goto L4;
L2:
L4:
if(42 < 15) goto L5;
goto L6;
L3:
L5:
t4 = 1;
goto L7;
L6:
t4 = 0;
L7:
Stack[t1] = t4;
//Inicia un IF
t5 = P + 2;
t6 = Stack[t5];
if (t6 == 1) goto L9;
goto L10;
L9:
printf("%c", 118);
printf("%c", 101);
printf("%c", 114);
printf("%c", 100);
printf("%c", 97);
printf("%c", 100);
printf("%c", 101);
printf("%c", 114);
printf("%c", 111);
goto L8;
L10:
printf("%c", 102);
printf("%c", 97);
printf("%c", 108);
printf("%c", 115);
printf("%c", 111);
L8: //Finaliza un IF
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment