assembly - Moving contents of RAX to C variable (x86-64 asm) -


this rather naive question. i'm playing around allocating executable memory , manually assembling x86 code run in it. i'm bit confused how addressing works in 64-bit mode. if have variable in c code, , want move contents of rax variable, form of mov instruction should use? (this isn't using inline assembly, can't compiler me; have value of &var play with.)

using intel syntax, mov [var],rax, var 64-bit immediate address.

i think intel call mov moffs64*,rax in "intel® 64 , ia-32 architectures software developer’s manual".


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -