🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ADD SUB kontra INC DEC

#2363
From: Andrzej Grażyński
Date: Mon, 20 Sep 2010 21:40
18 lines
1413 bytes
yesma pisze:
> http://www.agner.org/instruction_tables.pdf
> 9 List of instruction timings and μop breakdown for P4E
> 
> Tyle że niema tutaj podane dla ADD, SUB operands r,i
> 
> Instruction       ADD, SUB         INC, DEC
> Operands          r,r              r
> µops              1                2
> Microcode         0                0
> Latency           1                1
> Throughput        0.25             0.5
> Port              0/1              0/1
> Unit              alu0/1           alu0/1
> 
> Czy nielepiej jest stosować zawsze ADD SUB zamiast INC DEC ?

INC/DEC nie ruszają flagi C.
Technical Details
Message-ID: <i78kcr$gqp$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.onet.pl!not-for-mail
References: <i24eks$ec7$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.onet.pl!not-for-mail
From: Andrzej Grażyński <grazynsk@petex.com.pl>
Newsgroups: pl.comp.lang.asm
Subject: Re: ADD SUB kontra INC DEC
Date: Mon, 20 Sep 2010 23:40:35 +0200
Organization: http://onet.pl
Lines: 18
Message-ID: <i78kcr$gqp$1@news.onet.pl>
References: <i24eks$ec7$1@inews.gazeta.pl>
NNTP-Posting-Host: public-gprs97806.centertel.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1285018845 17241 79.162.0.16 (20 Sep 2010 21:40:45 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Mon, 20 Sep 2010 21:40:45 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
In-Reply-To: <i24eks$ec7$1@inews.gazeta.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit