Article View: pl.comp.lang.asm
Article #339Re: Wynik w konsoli
From: Wiktor S.
Date: Thu, 15 Jun 2006 11:38
Date: Thu, 15 Jun 2006 11:38
36 lines
1620 bytes
1620 bytes
>> xor ebx,ebx >> mov bl,al >> and bl,11110000b >> shr bl,4 >> mov ah,[.heksy+ebx] >> call writechar >> mov bl,al >> and bl,00001111b >> mov ah,[.heksy+ebx] >> call writechar >> >> .heksy db '0123456789ABCDEF' > > Eee, strasznie długie i skomplikowane... > Ja wolę: > > aam 16 > xchg al, ah > call printhex > mov al, ah > printhex: > add al, 90h > daa > adc al, 40h > daa > jmp putchar > > ; putchar jest procedurą, która wypisuje znak ASCII z al ezoteryczne instrukcje, magiczne wartości i skoki, nad którymi trzeba się kilka minut zastanawiać - ktoś tu mówił o skomplikowaniu? :-) -- Azarien
Technical Details
Message-ID:
<e6rgs3$qqm$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-mailReferences:
<e6p4as$bsk$1@atlantis.news.tpi.pl> <e6q18g$43r$1@news.onet.pl> <44908c35$0$22606$f69f905@mamut2.aster.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: "Wiktor S." <wswiktorSP@Mpoczta.fm> Newsgroups: pl.comp.lang.asm Subject: Re: Wynik w konsoli Date: Thu, 15 Jun 2006 13:38:38 +0200 Organization: Onet.pl Lines: 38 Message-ID: <e6rgs3$qqm$1@news.onet.pl> References: <e6p4as$bsk$1@atlantis.news.tpi.pl> <e6q18g$43r$1@news.onet.pl> <44908c35$0$22606$f69f905@mamut2.aster.pl> NNTP-Posting-Host: 155.168.wmc.com.pl Mime-Version: 1.0 X-Trace: news.onet.pl 1150371524 27478 87.250.168.155 (15 Jun 2006 11:38:44 GMT) X-Complaints-To: usenet@news.onet.pl NNTP-Posting-Date: Thu, 15 Jun 2006 11:38:44 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Sender: 63e3folRCjcGWUjNfLSN0w== X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-Priority: 3 X-MSMail-Priority: Normal Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit