www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/19/21:47:32

Date: Wed, 19 Jun 1996 18:27:47 -0700 (PDT)
From: Samuel Vincent <svincent AT cs DOT sonoma DOT edu>
To: Brian Drum <drum AT ix DOT netcom DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Assembly
In-Reply-To: <01bb5e15.dc3f9820$6c8bb8cd@#drum>
Message-ID: <Pine.GSO.3.93.960619182624.20626A-100000@zippy>
MIME-Version: 1.0

On Wed, 19 Jun 1996, Brian Drum wrote:

> > mwallace AT skyler DOT wiltel DOT com wrote in article
> <NEWTNews DOT 835198574 DOT 25477 DOT mwallace AT pc66219>...

> > 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


- Raw text -


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