flat assembler
Message board for the users of flat assembler.
![]() 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. |
|||
![]() |
|
ouadji 19 Jun 2011, 20:20
jecxz ? |
|||
![]() |
|
edfed 19 Jun 2011, 20:28
xchg ebp,ebp
|
|||
![]() |
|
typedef 19 Jun 2011, 21:07
ouadji wrote:
Hmmmm ? Would you rather Code: cmp ecx,0 je .xxx |
|||
![]() |
|
Teehee 19 Jun 2011, 21:51
edfed wrote: xchg ebp,ebp not so useless: a 2-bytes NOP ![]() _________________ Sorry if bad english. |
|||
![]() |
|
vid 19 Jun 2011, 21:56
Where is tom when we need him?
![]() |
|||
![]() |
|
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! (??) |
|||
![]() |
|
Tyler 20 Jun 2011, 03:33
lea is pretty pointless.
|
|||
![]() |
|
mindcooler 20 Jun 2011, 04:34
jecxz is pretty useless if you use ebx as your counter
![]() |
|||
![]() |
|
idle 20 Jun 2011, 11:28
sub eax,eax
cmovnz eax,[eax] |
|||
![]() |
|
Teehee 20 Jun 2011, 11:54
Tyler wrote: lea is pretty pointless. ++++++++++++++1 ![]() _________________ Sorry if bad english. |
|||
![]() |
|
Overflowz 20 Jun 2011, 12:17
Quote: lea is pretty pointless. No way! It' saves alot of work for me :p |
|||
![]() |
|
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. |
|||
![]() |
|
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. ![]() |
|||
![]() |
|
revolution 20 Jun 2011, 13:46
FFREE
Does anyone actually use it in a beneficial way? |
|||
![]() |
|
idle 20 Jun 2011, 14:44
fnop - dangerous nop ?
|
|||
![]() |
|
cod3b453 20 Jun 2011, 18:27
I'd go for ud2
![]() |
|||
![]() |
|
xleelz 21 Jun 2011, 01:43
what is std and cld good for?
|
|||
![]() |
|
revolution 21 Jun 2011, 01:55
|
|||
![]() |
|
Goto page 1, 2, 3, 4, 5, 6, 7 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.