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,260 of 4,675    |
|    Veek M to R.Wieser    |
|    Re: mov [a], rcx -vs- mov rax, [a]    |
|    22 Jan 18 02:46:21    |
      From: vek.m1234@nospicedham.gmail.com              On Monday, January 22, 2018 at 2:10:49 AM UTC+5:30, R.Wieser wrote:       > 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              Thanks Rudy, yeah - on reading it now, I did feel it was unclear.              --- 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