flat assembler
Message board for the users of flat assembler.
Index
> Main > The most useless instruction Goto page 1, 2, 3, 4, 5, 6, 7 Next |
Author |
|
Teehee 19 Jun 2011, 17:56
LOOP ?
everybody say it is slow and should be replaced by Jcc instr. .. Which others instructions are "useless"? _________________ Sorry if bad english. |
|||
19 Jun 2011, 17:56 |
|
ouadji 19 Jun 2011, 20:20
jecxz ? |
|||
19 Jun 2011, 20:20 |
|
edfed 19 Jun 2011, 20:28
xchg ebp,ebp
|
|||
19 Jun 2011, 20:28 |
|
typedef 19 Jun 2011, 21:07
ouadji wrote:
Hmmmm ? Would you rather Code: cmp ecx,0 je .xxx |
|||
19 Jun 2011, 21:07 |
|
Teehee 19 Jun 2011, 21:51
edfed wrote: xchg ebp,ebp not so useless: a 2-bytes NOP _________________ Sorry if bad english. |
|||
19 Jun 2011, 21:51 |
|
vid 19 Jun 2011, 21:56
Where is tom when we need him?
|
|||
19 Jun 2011, 21:56 |
|
ouadji 19 Jun 2011, 22:41
Code: or ecx,ecx
jz mylabel with "jecxz" the jump is limited to 128 bytes, in many cases it's not enough. There should be a "near version" of jecxz ! and it seems that it's faster too! (??) |
|||
19 Jun 2011, 22:41 |
|
Tyler 20 Jun 2011, 03:33
lea is pretty pointless.
|
|||
20 Jun 2011, 03:33 |
|
mindcooler 20 Jun 2011, 04:34
jecxz is pretty useless if you use ebx as your counter
|
|||
20 Jun 2011, 04:34 |
|
idle 20 Jun 2011, 11:28
sub eax,eax
cmovnz eax,[eax] |
|||
20 Jun 2011, 11:28 |
|
Teehee 20 Jun 2011, 11:54
Tyler wrote: lea is pretty pointless. ++++++++++++++1 _________________ Sorry if bad english. |
|||
20 Jun 2011, 11:54 |
|
Overflowz 20 Jun 2011, 12:17
Quote: lea is pretty pointless. No way! It' saves alot of work for me :p |
|||
20 Jun 2011, 12:17 |
|
edfed 20 Jun 2011, 12:35
lea is good, it means:
X=Y*scale+Z+Constant then, it is not so pointless, it is some advanced signal processing instruction. |
|||
20 Jun 2011, 12:35 |
|
JohnFound 20 Jun 2011, 12:45
"loop" is great instruction for programmers (also string instructions) it is not our fault they are slow. In most cases using "loop" makes your code readable and small.
For example FASM uses "non optimal" instructions all over the source, but it is still, the fastest assembler in the world. How is it possible? Meditate on this. |
|||
20 Jun 2011, 12:45 |
|
revolution 20 Jun 2011, 13:46
FFREE
Does anyone actually use it in a beneficial way? |
|||
20 Jun 2011, 13:46 |
|
idle 20 Jun 2011, 14:44
fnop - dangerous nop ?
|
|||
20 Jun 2011, 14:44 |
|
cod3b453 20 Jun 2011, 18:27
I'd go for ud2
|
|||
20 Jun 2011, 18:27 |
|
xleelz 21 Jun 2011, 01:43
what is std and cld good for?
|
|||
21 Jun 2011, 01:43 |
|
revolution 21 Jun 2011, 01:55
|
|||
21 Jun 2011, 01:55 |
|
Goto page 1, 2, 3, 4, 5, 6, 7 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.