| justin = { main feed , music , code , askjf , pubkey }; | |||
|
Ask Justin Frankel No reasonable question unanswered since 2009! Suggested topics: programming, music, sleep, coffee, etc. Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.
|
|||
|
Question: Could you explain how one utilizes inline assembly? An example of creating a variable in C then using it in asm registers, etc. Asked by Will (68.224.131.x) on February 20 2011, 8:28pm Reply on February 20 2011, 8:42pm:
int x = 0x1000;
__asm {
mov eax, x
ror eax, 16
mov x, eax
}
printf("%x\n",x);
Very straightforward, if you know assembly (load x into eax, roll right eax 16 bits, store back to x).
Comment:
|