flat assembler
Message board for the users of flat assembler.
Index
> Main > the most usefull instruction: |
Author |
|
Overflowz 10 Aug 2011, 02:05
lea, shr/shl, ror/rol, add/sub, inc/dec, cmp and int3 jk
|
|||
10 Aug 2011, 02:05 |
|
Madis731 10 Aug 2011, 05:33
That's a different topic: http://en.wikipedia.org/wiki/One_instruction_set_computer
Yes you can only use a single instruction, but looking at some statistics, http://www.strchr.com/x86_machine_code_statistics mov is the most useful in everyday computing. Personally I love LEA and if its not the most useful it definitely is the most powerful instruction. EDIT by DOS386 (2011-08-17) : fixed broken link |
|||
10 Aug 2011, 05:33 |
|
AsmGuru62 10 Aug 2011, 12:58
I like:
SETxx CMOVxx These allow for branch-less code. |
|||
10 Aug 2011, 12:58 |
|
MHajduk 10 Aug 2011, 13:09
AsmGuru62 wrote: I like: |
|||
10 Aug 2011, 13:09 |
|
Madis731 10 Aug 2011, 13:16
I agree, CMOVxx could be very useful if it were to allow more options. Shuffling all the registers around makes my head hurt and it doesn't usually give any performance benefits.
|
|||
10 Aug 2011, 13:16 |
|
cod3b453 10 Aug 2011, 19:27
My first thought was lea
|
|||
10 Aug 2011, 19:27 |
|
DOS386 17 Aug 2011, 04:24
http://board.flatassembler.net/topic.php?t=5249 "top 20"
http://board.flatassembler.net/topic.php?t=13027 "useless" > the most usefull instruction LOADALL286 > CMOVxx-like instructions would be truly cool if there was a > possibility to move immediate values. And even more if added in 80386 or even better in 8086, and if not PageFaulting if condition is false |
|||
17 Aug 2011, 04:24 |
|
nop 18 Aug 2011, 11:04
of course the most usefull instruction is nop
garanteed to never produce unpredictable results can sprinkle liberaly through code and replace with single byte interrupt for tracing and debuging |
|||
18 Aug 2011, 11:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.