home bbs files messages ]

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,258 of 4,675   
   R.Wieser to All   
   Re: mov [a], rcx -vs- mov rax, [a]   
   21 Jan 18 21:29:25   
   
   From: address@nospicedham.not.available   
      
   Veek,   
      
   > Therefore [a] is a pointer in this case?   
      
   Not just for that one, but for *both* cases.   
      
   >  mov rax, [a]   
   >  mov [a], rax   
      
   Load/store RAX from/into 8 bytes of memory, starting at the location denoted   
   by the label "a".   
      
   A single line to describe both, just with the starget and source reversed.   
      
      
   And a remark:   
      
   >  mov rax, [a]   ; to store the value of 'a' in rax   
      
      
   I think you mean well, but the above remark is actually valid for a rather   
   different command:   
      
   mov rax,offset a   
      
    -or possibly even just-   
      
   mov rax,a   
      
   (it depends on the assembler, and the mode its in)   
      
   Suggestion: in your case replace"value" with "contents" (and for the other   
   case use "offset") to make it less ambigue.   
      
   Regards,   
   Rudy Wieser   
      
   --- 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