title: How do i store address in a register on x86
body: <p>I have a piece of code as below:</p>
  
  <pre><code>    .section .data
      myvar:
      .long 4,3,2,1
  
      .section .text
      .globl _start
      _start:
       movl $0, %edi
       movl myvar(,%ed1,4), %eax
       movl $0, %ebx
  </code></pre>
  
  <p>I would like to store address of last element of my array "myvar" in ebx (which is 1),  How do i do that ?</p>