🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.asm
Article #2203

Re: Podobna zagadka

#2203
From: Andrzej Grażyński
Date: Mon, 12 Apr 2010 14:14
22 lines
1177 bytes
Andrzej Grażyński pisze:
> Dane jest pole o adresie początku w ESI i długości w bajtach w ECX. 
> Należy odwrócić kolejność BITÓW.

SHL ECX,3
JZ  @@Done
MOV EBX,ECX
XOR EDX,EDX

@@Loop:
   DEC EBX
   BT [ESI],EBX
   SETC AL
   BT [ESI], EDX
   SBB AL,0
   JZ  @@Ancora
   BTC [ESI],EBX
   BTC [ESI],EDX
@@Ancora:
   INC  EDX
   LOOP @Loop
@@Done:
Technical Details
Message-ID: <hpv9sg$bpb$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
References: <hpo4ih$5ub$2@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
From: Andrzej Grażyński <grazynsk@petex.com.pl>
Newsgroups: pl.comp.lang.asm
Subject: Re: Podobna zagadka
Date: Mon, 12 Apr 2010 16:14:15 +0200
Organization: http://onet.pl
Lines: 22
Message-ID: <hpv9sg$bpb$1@news.onet.pl>
References: <hpo4ih$5ub$2@news.onet.pl>
NNTP-Posting-Host: bze234.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1271081680 12075 83.19.34.234 (12 Apr 2010 14:14:40 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Mon, 12 Apr 2010 14:14:40 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
In-Reply-To: <hpo4ih$5ub$2@news.onet.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit