delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/13/17:45:21

From: Martin Str|mberg <ams AT father DOT ludd DOT luth DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: asm instructions
Date: Mon, 13 Aug 2001 21:43:57 +0000 (UTC)
Organization: University of Lulea, Sweden
Lines: 25
Message-ID: <997739037.220488@queeg.ludd.luth.se>
References: <M7Wd7.1$2u DOT 39 AT www DOT newsranger DOT com>
X-Trace: news.luth.se 997739037 18585 130.240.16.109 (13 Aug 2001 21:43:57 GMT)
X-Complaints-To: abuse AT luth DOT se
User-Agent: tin/pre-1.4-981225 ("Volcane") (UNIX) (SunOS/4.1.4 (sun4m))
Cache-Post-Path: queeg.ludd.luth.se!unknown AT father DOT ludd DOT luth DOT se
X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

dshnv AT www DOT com wrote:
: movl %ebx, %ds

This is wrong. You probably mean "movw %bx, %ds".

: When I want to compile it (as -o test.o test.s) I get the following errors:

: test.s: Assembler messages:
: test.s:163: Error: no such instruction: `pushad'
: test.s:177: Error: no such instruction: `popad'
: test.s:183: Error: no such instruction: `iretd'

: What instructions are the equivalent to these and are valid under the AT&T
: syntax assembler? (the TASM to AT&T converter I found on the internet converts
: 'pushad' as 'pushad' so that doesn't work. Does anyone maybe have a pointer to
: where I can find the valid instructions and their intel equivalents?)

"iret". I'm not sure about popad/pushad, but I think popa/pusha
should do it. (Remember gcc is a 32-bit compiler so there is no need
for "d"ouble. Hmm, perhaps it's "popal" or "popla" by analogy?)


Right,

						MartinS

- Raw text -


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