Hello
I have some code in C++, which invokes Asm procedure. One procedure is 32 bit (asm x86), and other is 64 bit (asm x64).
Example:
I have some code in C++, which invokes Asm procedure. One procedure is 32 bit (asm x86), and other is 64 bit (asm x64).
Example:
Code: Select all
Can I compile the code into a 32-bit PE file that detects the architecture and, depending on the bit depth of Windows, calls x86 or x64 proc? Or it is impossible?x86 proc
mov eax,dword ptr[edx]
ret
x86 proc
x64 proc
mov rax,qword ptr [rdx]
ret
x64 proc