Re: Interact with local variables in asm block

2025-07-04 Thread confuzzled via Digitalmars-d-learn
On 7/5/25 1:06 AM, confuzzled wrote: ulong rdtsc() {     ulong result;     uint* res = cast(uint*) &result;     asm {     rdtsc;  // Puts result in edx:eax     // Cast our ulong's address to a 32-bit integer pointer     // and move the register values into the correct memory lo

Interact with local variables in asm block

2025-07-04 Thread confuzzled via Digitalmars-d-learn
Good day all, What is the proper way to assign to accomplish this? ulong rdtsc() { ulong result; uint* res = cast(uint*) &result; asm { rdtsc; // Puts result in edx:eax // Cast our ulong's address to a 32-bit integer pointer // and move the register values i