Mail Archives: djgpp/1996/05/10/12:26:55
In article <199605060827 DOT EAA00632 AT delorie DOT com> Martynas Kunigelis <martynas DOT kunigelis AT VM DOT KTU DOT LT> writes:
>From: Martynas Kunigelis <martynas DOT kunigelis AT VM DOT KTU DOT LT>
>Subject: GAS bugs
>Date: Mon, 6 May 1996 15:19:53 GMT
>I've noticed one more thing: if you write pushw %ds, GAS generates an extra
>16-bit opcode prefix 0x66, which is unnecessary with segment registers.
>Still, if you write push %ds, GAS acts right. So: do not use the operand size
pushw %ds saves 16 bit on the stack (stackpointer is decremented by 2)
pushl %ds saves 32 bit on the stack (ds is stored in the low word, the high
word is undefined)
Herbert Kleebauer
- Raw text -