0

I just start learning Assembly and got confused by the following expressions.

mov ebx, 2

mov ecx, 3

mov eax, [ebx+ecx*4]

From what address the data will be moved to eax?

And I don`t understand what is result of the computation of addresses in [ebx+ecx*4]?

Carl Norum
  • 219,201
  • 40
  • 422
  • 469
Znatz
  • 1,530
  • 2
  • 18
  • 31
  • Note you can [format lines as code](http://meta.stackexchange.com/questions/22186/) by indenting them four spaces. The "{}" button in the editor toolbar does this for you. Edit your question and try it out. Click the orange question mark in the editor toolbar for more information and tips on formatting. What's the source of the code? Is this for a programming [assignment](http://meta.stackexchange.com/q/10811/)? – outis May 13 '12 at 09:01

1 Answers1

2

14 (= 2 + (3*4)), if I remember well

Laszlo T
  • 1,165
  • 10
  • 22