What is the fastest way to push all 64-bit registers onto the stack?

Viewed 1966

I am beginning to write some assembly. What is the fastest way to push and pop all 64-bit registers to the stack in x86-64? I know pusha will save the state of all 32-bit general purpose registers.

I want to save the state(using cdecl convention) of all the registers I will use(I will use all 64-bit registers).

Thanks.

0 Answers
Related