Log in

View Full Version : idioms


tom324
February 15th, 2004, 17:16
Where can I find list of assembler idioms generated by M$ VC and gcc?

Like:

neg eax
sbb eax,eax
and eax,8

=> eax = (eax ? 8 : 0)

PS. I did google and RTFM, but have only a portion of idioms.

Tom

evlncrn8
February 15th, 2004, 17:56
Quote:
[Originally Posted by tom324]Where can I find list of assembler idioms generated by M$ VC and gcc?

Like:

neg eax
sbb eax,eax
and eax,8

=> eax = (eax ? 8 : 0)

PS. I did google and RTFM, but have only a portion of idioms.

Tom



you mean mnemonics?

google search for "helppc", download it, unzip, run it, has all the info u need (well most of it nehows)

disavowed
February 15th, 2004, 23:11
Quote:
[Originally Posted by evlncrn8]you mean mnemonics?
i don't think that's what he meant. evlncrn8, if i'm understanding your question correctly, i don't know of any such resource. however, you can determine it all yourself by just compiling it and looking.

reverser
February 16th, 2004, 06:46
Here are some articles on the topic. They are in Russian, but you can read the code .
hxxp://web.archive.org/web/20030622210126/http://www.wasm.ru/article.php?article=1009004
Identifying arithmetic operations
hxxp://web.archive.org/web/20030622210126/http://www.wasm.ru/article.php?article=1009003
Identifying loops
hxxp://web.archive.org/web/20030622210126/http://www.wasm.ru/article.php?article=1009002
Identifying switch/case/break
hxxp://web.archive.org/web/20030622210126/http://www.wasm.ru/article.php?article=1009001
Identifying if/then/else

(linked to web archive because main site is ddosed )

tom324
February 16th, 2004, 09:02
evlncrn8, disavowed & reverser: thanks for replies.

Quote:
[Originally Posted by reverser]Here are some articles on the topic. They are in Russian, but you can read the code


Russian is not that hard

Tom

Polaris
February 16th, 2004, 12:41
Have a look to the dcc and desquirr source codes... They contain lots of idioms... But probably you already did that ...

tom324
February 16th, 2004, 14:25
> But probably you already did that

Yes, desquirr is main source of all idioms I have found.

Tom