This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Pushing Register in ASM function

Dear all,

When I am writing some ASM function, I always need to PUSH the accumulator and all register I have used inside the function. I am wondering if this ASM function is to be called by other C function, do I still need to PUSH the accumulator and the register? It seems that the C compiler will avoid saving some useful data into the accumulator and the register that may need to be retrived after the ASM function call.

Best Regards,
H.K. Chan

0