Article View: pl.comp.lang.asm
Article #2201Re: Podobna zagadka
From: Bernard
Date: Sun, 11 Apr 2010 20:21
Date: Sun, 11 Apr 2010 20:21
22 lines
1474 bytes
1474 bytes
On 2010-04-09 23:00, Andrzej Grażyński wrote:
> Dane jest pole o adresie początku w ESI i długości w bajtach w ECX.
> Należy odwrócić kolejność BITÓW.
xlop:
lodsb
mov ah, al
and ax, 0x55aa
shr al, 1
aad 2
mov ah, al
and ax, 0x33cc
shr al, 2
aad 4
ror al, 4
xchg al, [esi + ecx - 2]
; i tu to samo, co powyżej - 9 instrukcji
mov [esi - 1], al
sub ecx, 2
ja xlop
razem 23 instrukcje na 1 obieg pętli
Technical Details
Message-ID:
<hptb15$6q6$1@newsread1.aster.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!plix.pl!newsfeed1.plix.pl!nntp.aster.pl!newsread1.aster.pl!not-for-mailReferences:
<hpo4ih$5ub$2@news.onet.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!plix.pl!newsfeed1.plix.pl!nntp.aster.pl!newsread1.aster.pl!not-for-mail From: Bernard <bernard@earth.net> Newsgroups: pl.comp.lang.asm Subject: Re: Podobna zagadka Date: Sun, 11 Apr 2010 22:21:07 +0200 Organization: Aster Sp. z o.o. Lines: 22 Message-ID: <hptb15$6q6$1@newsread1.aster.pl> References: <hpo4ih$5ub$2@news.onet.pl> NNTP-Posting-Host: 187-mo6-2.acn.waw.pl Mime-Version: 1.0 X-Trace: newsread1.aster.pl 1271017317 6982 82.210.165.187 (11 Apr 2010 20:21:57 GMT) X-Complaints-To: abuse@aster.pl NNTP-Posting-Date: Sun, 11 Apr 2010 20:21:57 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 In-Reply-To: <hpo4ih$5ub$2@news.onet.pl> X-Antivirus: avast! (VPS 100411-0, 2010-04-11), Outbound message X-Antivirus-Status: Clean Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit