[ create a new paste ] login | about

Link: http://codepad.org/z1BZV02T    [ raw code | output | fork ]

C, pasted on Feb 22:
#include <stdio.h>

int F1(double x, double y)  
{
    int i[3];
    double n;

 /*hier adresse von SBP und SP angeben*/
    unsigned ebp,esp;
    asm volatile ("movl %%ebp,%0" : "=r" (ebp));
    asm volatile ("movl %%esp,%0" : "=r" (esp));
    printf("%lX\n%lX",ebp,esp);


    n = 6.04 * x - 8.5;
    return (n);
}

int main()  
{
    double a, b, c;
    a = 10;
    b = 10;
    F1(a, b);
    return 0;
}


Output:
1
2
FF9C28D8
FF9C28A0


Create a new paste based on this one


Comments: