Mail Archives: djgpp/1996/06/19/21:47:32
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 -