Created
January 5, 2019 05:16
-
-
Save Generickle/1ce55b323b14640b9ff4ef5ca65aae07 to your computer and use it in GitHub Desktop.
Falta arreglar la potencia y la impresión.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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