Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pushad with GAS?

10 views
Skip to first unread message

Manuel Rodriguez

unread,
Dec 22, 2009, 1:55:51 PM12/22/09
to
I use Gnu Assembler and tried the "pushad" Opcode (push all register
to stack). But GAS says : "Error". Why? Exists a seperate pushad for
GAS?

Frank Kotler

unread,
Dec 22, 2009, 2:07:20 PM12/22/09
to

"d" is not a suffix Gas uses, AFAIK. Try "pushal" - guessing, not tested.

Best,
Frank

Rugxulo

unread,
Dec 29, 2009, 12:12:06 AM12/29/09
to
Hi,

I don't really use GAS directly much either. But ".intel_syntax
noprefix" seems to support "pushad" fine. Disassembling with "objdump -
d" seems to show "pusha" regardless of mode. And yes, "pushal" seems
to work in AT&T mode. Worst case scenario, you can always hardcode the
".byte 0x60". ^_^

0 new messages