www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/10/12:26:55

Xref: news2.mv.net comp.os.msdos.djgpp:3669
From: klee AT mistress DOT informatik DOT unibw-muenchen DOT de (Herbert Kleebauer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GAS bugs
Date: Wed, 8 May 1996 10:52:38
Organization: Fakultaet fuer Informatik, Universitaet der BW Muenchen
Lines: 14
Message-ID: <klee.211.000AE0E8@mistress.informatik.unibw-muenchen.de>
References: <199605060827 DOT EAA00632 AT delorie DOT com>
NNTP-Posting-Host: pc1510a.informatik.unibw-muenchen.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019