Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int x, a;
- scanf("%d", &a);
- __asm__ ( "movl $0, %%ebx;"
- "movl $0, %%ecx;"
- "movl $140, %%edx;"
- "LoopSt:"
- "cmp %%ebx, %%edx;"
- "JLE LoopFin;"
- "addl %%eax, %%ebx;"
- "inc %%ecx;"
- "JMP LoopSt;"
- "LoopFin:"
- : "=c"(x): "a"(a));
- printf("%d", x);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement