2

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 ?

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

1 Answer 1

3

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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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