TransWikia.com

ollydbg: CMP - what the difference

Reverse Engineering Asked by Andrey Mironov on July 14, 2021

What is the difference between:

MOV SI,WORD PTR DS:[ESI+0D]

CMP SI,1388

and

CMP WORD PTR DS:[ESI+0d],1388 

One Answer

I believe they are the same for the given assembly snippet, but in the first snippet, the value of ESI+0D is saved in SI and could be later used again without loading it from the memory additional time.

Answered by macro_controller on July 14, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP