flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Overflowz
lea, shr/shl, ror/rol, add/sub, inc/dec, cmp and int3
![]() |
|||
![]() |
|
Madis731
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 |
|||
![]() |
|
AsmGuru62
I like:
SETxx CMOVxx These allow for branch-less code. |
|||
![]() |
|
MHajduk
AsmGuru62 wrote: I like: |
|||
![]() |
|
Madis731
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.
|
|||
![]() |
|
cod3b453
My first thought was lea
|
|||
![]() |
|
DOS386
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 ![]() |
|||
![]() |
|
nop
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 |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.