Is there any “global” code that can runs under both x86 and x64 architectures and determines the system architecture?(in assembly language) etc : in some operating system bootable setups the launcher can runs under both architectures
I want something like this:
if x86 jump x86architecture;
else jump x64architecture
I just want to detect the operating system architecture to build a program that can run under both architectures. not an operating system just a usual program that runs under an operating system. * I just don't want to get this error: "This version of this file is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need an x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher."