🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: string reverse

#877
From: Paweł Pawlak
Date: Tue, 05 Dec 2006 16:47
21 lines
1418 bytes
Bartek Dajewski napisał(a):
> lub (zwróc uwage na zmiane kolejnosci bajtów przed zapisem):
> 
>     mov    eax, [ebx]
>     lea    ebx, [ebx + 4]
>     xchg    al, ah
>     lea    edx, [edx - 4]
>     rol    eax, 16
>     xchg    al, ah
>     mov    [edx], eax

a ja zamiast
>     xchg    al, ah
 >     rol    eax, 16
 >     xchg    al, ah

dałbym po prostu
       bswap eax

Pozdrawiam,
Morris
Technical Details
Message-ID: <el480l$hd0$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.gazeta.pl!not-for-mail
References: <8j3qqhx2oh2t.16ahj7wfz15t2$.dlg@40tude.net> <el406i$1c8$1@mx1.internetia.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.gazeta.pl!not-for-mail
From: Paweł Pawlak <morr!s@elys!um.pl>
Newsgroups: pl.comp.lang.asm
Subject: Re: string reverse
Date: Tue, 05 Dec 2006 17:47:36 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 21
Message-ID: <el480l$hd0$1@inews.gazeta.pl>
References: <8j3qqhx2oh2t.16ahj7wfz15t2$.dlg@40tude.net> <el406i$1c8$1@mx1.internetia.pl>
NNTP-Posting-Host: eot96.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1165337429 17824 83.20.35.96 (5 Dec 2006 16:50:29 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Tue, 5 Dec 2006 16:50:29 +0000 (UTC)
X-User: m_knox
X-Antivirus: avast! (VPS 0653-5, 2006-12-05), Outbound message
In-Reply-To: <el406i$1c8$1@mx1.internetia.pl>
X-Antivirus-Status: Clean
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit