Any way to avoid having to copy-paste the pushad
/popad
instruction body into my code?
Because gcc (current flags: -Wall -m32
) complains that
__asm__("pushad;");
Error: no such instruction: `pushad'
__asm__("popad;");
Error: no such instruction: `popad'
GCC use AT/T assembly syntax, while
pushad/popad
are Intel convention, try this: