From: EmailNullFile@nospicedham.voenflacbe.cpm   
      
   On Sun, 21 Jan 2018 00:05:02 -0800 (PST)   
   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   
   >   
   > 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?   
   >   
      
   YASM uses NASM syntax. NASM syntax uses brackets [] for memory   
   references.   
      
   If you'd read the "Addressing" section of YASM's "NASM Syntax" web   
   page, you wouldn't be asking us about NASM's use of brackets [] for   
   memory references:   
      
   https://github.com/yasm/yasm/wiki/NasmSyntax   
   http://yasm.tortall.net/   
      
      
   Rod Pemberton   
   --   
   "White Privilege - The privilege of being called 'racist' by people who   
   see nothing else about you except your race." - Internet meme   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|