Search found 1 match

by zer0cat
Sat Nov 10, 2018 7:48 pm
Forum: Newbie Questions
Topic: How i can use one Asm code to x86 and x64?
Replies: 2
Views: 391

How i can use one Asm code to x86 and x64?

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: x86 proc mov eax,dword ptr[edx] ret x86 proc x64 proc mov rax,qword ptr [rdx] ret x64 proc Can I compile the code into a 32-bit PE file that detects the architecture...