Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 3,256 of 4,675    |
|    Melzzzzz to Veek M    |
|    Re: mov [a], rcx -vs- mov rax, [a]    |
|    21 Jan 18 18:38:21    |
   
   From: Melzzzzz@nospicedham.zzzzz.com   
      
   On 2018-01-21, Veek M wrote:   
   > Reading Ray Seyfarth - x86/Yasm assembly language. In it he uses the   
   > following   
   >   
   > segment .data: a dq 175   
   >   
   > segment .text global main main: mov rax, [a] ; to store the value of   
   > 'a' in rax   
      
   Store value referenced by address `a` into rax.   
      
   >   
   > Thus leading to the conclusion [] acts as a de-reference operator.   
   >   
   > But then he does:   
   >   
   > mov [a], rax; which ought to mean he's storing a value in the   
   > value-of-a. Therefore [a] is a pointer in this case? Is that so or   
   > is he storing in 'a' somehow - slings and arrows of outrageous   
   > syntax?   
      
   Store value in rax at address `a`. It's x86 instruction.   
      
   >   
      
      
   --   
   press any key to continue or any other to quit...   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca