🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Mnożenie

#1018
From: Matuzalem
Date: Sun, 01 Apr 2007 16:13
13 lines
1558 bytes
On 1 Kwi, 17:30, edz...@gmail.com wrote:
> Mam do napisania program ktory pobiera z klawiatury liczbe (to mam) i
> przemnaza ja przez 2. W jaki sposob wykorzystac tu instrukcje MUL?

Witam

Efektywniej i optymalniej jest przesunąć w lewo o 1.

mov eax, [liczba] ; jeśli np. masm, tasm to bez [] - chociaż to tam
nie przeszkadza :]
shl eax, 1 ; liczba * 2 = eax

Pozdrawiam
Technical Details
Message-ID: <1175444019.308368.264530@b75g2000hsg.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.task.gda.pl!fu-berlin.de!postnews.google.com!b75g2000hsg.googlegroups.com!not-for-mail
References: <1175441448.150160.312730@y80g2000hsf.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.task.gda.pl!fu-berlin.de!postnews.google.com!b75g2000hsg.googlegroups.com!not-for-mail
From: "Matuzalem" <codemaster_@op.pl>
Newsgroups: pl.comp.lang.asm
Subject: Re: Mnożenie
Date: 1 Apr 2007 09:13:39 -0700
Organization: http://groups.google.com
Lines: 14
Message-ID: <1175444019.308368.264530@b75g2000hsg.googlegroups.com>
References: <1175441448.150160.312730@y80g2000hsf.googlegroups.com>
NNTP-Posting-Host: 212.244.115.33
Mime-Version: 1.0
X-Trace: posting.google.com 1175444020 16153 127.0.0.1 (1 Apr 2007 16:13:40 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 1 Apr 2007 16:13:40 +0000 (UTC)
In-Reply-To: <1175441448.150160.312730@y80g2000hsf.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: b75g2000hsg.googlegroups.com; posting-host=212.244.115.33;   posting-account=HFFdEQ0AAACI08bdAnMScVqwVEj2ucOg
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit