I have to have access to Registers using C because I was asked to do two function similar to setjmp/longjmp (for no local jmps) So I need to keep a copy of the registers when setjmp is called and then to restore them when longjmp is called.
I am using gcc compiler for Linux Red Hat 8.0
I hope...
How can I do to work with assembler and C??? I need to have access to the contents of Registers and save them. Please answer me with a written code on how to do this.
My problem is that I don´t know how to get the infomation saved in registers(eax,ebx,ecx,edx,esi,edi,ebp,esp,etc) that can be easily manipulated in assembler. My question is how you can do this using C???
Thanks,
PiV
HI!
I was asked to create two functions similar to setjmp/longjmp, but setjmp has to keep a record not only of the state of registers, but also:
a)the state of the signals in that moment
b)the moment setjmp is called (with a timer)
c)the state of the floating point coprocessor
Longjmp has to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.