Date: Wed, 19 Jun 1996 18:27:47 -0700 (PDT) From: Samuel Vincent To: Brian Drum cc: djgpp AT delorie DOT com Subject: Re: Assembly In-Reply-To: <01bb5e15.dc3f9820$6c8bb8cd@#drum> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 19 Jun 1996, Brian Drum wrote: > > mwallace AT skyler DOT wiltel DOT com wrote in article > ... > > I am trying to port an assembly routine to DJGPP. However, > > DJGPP does not recognize the op code I'm trying to use. > > The code is "shrd edx, eax, 16". I don't know that much > > about assembly. How do I simulate this using other op > > codes? > if you're trying to shift both eax and edx right 16 bits, then: > shrl $16, %eax > shrl $16, %edx > should work. I believe he's trying the upper 16 bits of one register into the lower 16 bits (having the rest of the bits shifting along with it) of the second register.. I think this is a 386 instruction... -Sam