delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/20/10:08:53

From: "Wayne Ross" <wajr AT bjss DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: SHRD & SHLD instructions
Date: 20 Jan 1997 10:35:08 GMT
Organization: BJSS Ltd
Lines: 41
Message-ID: <01bc06bc$48a51d10$305098c2@atkinson>
References: <01bc02ca$a86f3140$305098c2 AT atkinson> <Pine DOT SGI DOT 3 DOT 91 DOT 970117110023 DOT 1691A-100000 AT chinook DOT physics DOT utoronto DOT ca>
NNTP-Posting-Host: host48.bjss.co.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Are you sure about that? SHLD & SHRD shift a register's bits left/right and
move bits from another register into the positions left behind., i.e,

For a SHLD reg1, count, reg2

	reg1	reg2
<----------	0110<---	1001

As the bits from reg1 are shifted left, bits are shifted in from reg2 to
occupy the space.

For two 16 bit numbers SHLD would perform the same function as SHLL, but
for two 32 bit numbers (one 64 bit number :-) ) it would not.

Thanks for the reply anyway

Wayne.

Peter Berdeklis <peter AT atmosp DOT physics DOT utoronto DOT ca> wrote in article
<Pine DOT SGI DOT 3 DOT 91 DOT 970117110023 DOT 1691A-100000 AT chinook DOT physics DOT utoronto DOT ca>...
> On 15 Jan 1997, Wayne Ross wrote:
> 
> > Are the SHRD & SHLD instructions supported in the AT&T syntax. If so,
what
> > is the AT&T syntax for them? 
> 
> shrd == shrl, shld == shll (l for long)
> 
> 
> > Also, does anybody have a text document listing the 80x86 AT&T syntax
for
> > quick reference? 
> 
> Check out the as info files, under Machine Dependencies: i386 (or 
> something like that).
> 
> ---------------
> Peter Berdeklis
> Dept. of Physics, Univ. of Toronto
> 
> 

- Raw text -


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