flat assembler
Message board for the users of flat assembler.
Index
> Main > The most useless instruction Goto page Previous 1, 2, 3, 4, 5, 6, 7 Next |
Author |
|
AsmGuru62 21 Jun 2011, 02:35
Can't move memory to insert something without STD. It's either STD or moving memory in small steps - ineffective.
|
|||
21 Jun 2011, 02:35 |
|
Picnic 21 Jun 2011, 10:21
xleelz wrote: what is std and cld good for? Moving, copying, traversing data, in conjunction with a REP prefix and movsb, stosb, cmpsb instructions. Quite useful. |
|||
21 Jun 2011, 10:21 |
|
sinsi 21 Jun 2011, 10:37
Try writing 64-bit code without LEA.
|
|||
21 Jun 2011, 10:37 |
|
idle 21 Jun 2011, 11:15
BSWAP
CPUID CMPXCHG CMPXCHG8B XADD as those are not in i386 set i regret much about clever thoughts come afterwards, crying or very sad |
|||
21 Jun 2011, 11:15 |
|
Teehee 21 Jun 2011, 12:08
@ouadji: pointless != useless, doesn't? at least in my suck english it is
i preffer to call it LEV (Load Effective Value) lol |
|||
21 Jun 2011, 12:08 |
|
idle 21 Jun 2011, 13:06
Quote:
in our native = lion |
|||
21 Jun 2011, 13:06 |
|
bitshifter 21 Jun 2011, 13:34
What about esc, not useless, but maybe least used?
As for any others mentioned, i think they ALL are very useful. Some people have great big toolbox full of tools and do everything with just a hammer |
|||
21 Jun 2011, 13:34 |
|
Enko 21 Jun 2011, 13:52
bitshifter wrote:
Not if you are Jemie from Mythbusters, he does have a great toolkit and he actually use it. http://dsc.discovery.com/videos/mythbusters-raw-jamies-toolkit.html My thought is that all the instructions at some point are usefull. For example, some "exotic" intructions can be used to bother noob crackers. |
|||
21 Jun 2011, 13:52 |
|
MazeGen 22 Jun 2011, 09:24
|
|||
22 Jun 2011, 09:24 |
|
ouadji 22 Jun 2011, 09:56
INT3 (0xCC) ... ok but INT 3 (0xCD 0x03) ?? Just a matter of microprocessor design. It would be foolish to disable this instruction. But in practice, this instruction is completely useless. |
|||
22 Jun 2011, 09:56 |
|
vid 22 Jun 2011, 10:19
CD03 behaves bit differently from CC. I don't recall exact details, but you should be able to find them in manuals.
|
|||
22 Jun 2011, 10:19 |
|
Tomasz Grysztar 22 Jun 2011, 10:20
You can find those details here: http://board.flatassembler.net/topic.php?p=32983#32983
|
|||
22 Jun 2011, 10:20 |
|
Feryno 22 Jun 2011, 13:01
Personally, I don't find any useless instruction.
Even found some usage for instructions/combinations of instructions looking "useless" like REPZ LODSD (a0C.exe in self_dbg in fdbg package) - MazeGen likes the REP LODSB, right? Remember that if you find some "useless" instruction or some exotic combination of instructions, it may be an antidebug trick. Don't reject anything only because currently you think it's useless, good idea opening your eyes may come in the feaure and may color the world ! idle wrote: CMPXCHG MazeGen wrote: INVLPG db 0CCh / db 0CDh, 03h - again an antidebug trick, even microsoft windows exception handler doesn't count with CD03 choice and reports wrong exception address inside CD03 instruction (ms assumes every int3 comes from db 0CCh, int3 is trap type of exception, so ms handler subtracts 1 and reports that as origin of instruction leading into int 3, then you must think of some correction algorithm if you develop a debugger) |
|||
22 Jun 2011, 13:01 |
|
Enko 22 Jun 2011, 13:42
|
|||
22 Jun 2011, 13:42 |
|
MazeGen 22 Jun 2011, 13:52
Feryno wrote:
|
|||
22 Jun 2011, 13:52 |
|
DOS386 10 Jul 2011, 02:17
Tyler wrote: lea is pretty pointless. NO : http://board.flatassembler.net/topic.php?p=111985#111985 Quote: The most useless instruction VERR and VERW |
|||
10 Jul 2011, 02:17 |
|
yoshimitsu 13 Jul 2011, 01:53
I guess by "useless" instructions you mean those, which actually consist of two operations and were implemented to provide some higher level of code to draw simplicity but ended up being much slower and are therefore negatively connotated
examples are loop, enter, lods, stos, movs on most processors they are considerably slower than their two instruction-pendants kind of compareable to inc eax vs add eax,1 as the latter is often faster on newer processors while 'inc' is considered more an 'exotic' instruction like the high-level instructions mentioned above however, there are some exceptions like leave or rep lods/stos/movs, which are pretty fast |
|||
13 Jul 2011, 01:53 |
|
idle 13 Jul 2011, 03:14
Quote:
there is special opcode for shifts when count=1 |
|||
13 Jul 2011, 03:14 |
|
revolution 13 Jul 2011, 04:02
idle wrote: there is special opcode for shifts when count=1 |
|||
13 Jul 2011, 04:02 |
|
Goto page Previous 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.