1

I am wondering why the assembly instructions also have an adresses (When I open Olly and debug any program I see them there next to the op codes) ? Or this is the address where the result of the instruction is stored ?

  • 1
    show some example. I think you are asking about the address of the instruction but some instructions can contain addresses too. – Paweł Łukasik Aug 26 '17 at 20:04
  • 2
    please remember that we can't see your screen from here – Igor Skochinsky Aug 27 '17 at 7:57
2

In fact, the assembly instructions does not have addresses built-in... But, when analyzing a program, you may encounter more than once the same instruction. In order to make it 'unique' in the program (and, thus, understand the role it plays in the program), you have to link it to the address it has in the program.

Somehow, it is very similar to line numbers associated to a program you write in a programming language. The if (test) line 10 is not the same than the if (test) of line 25.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.