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:
__asm__("pushal;");
__asm__("popal;");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With