Posted: Fri Aug 18, 2023 9:51 pm Post subject: Can you use inline ASM on x64 in Visual Studio
is there any way to use the inline ASM function in visual studio for x64 applications? i don't know how to code in C++
so far I had been using inline ASM to make my DLL for hacks/cheats but it was for x86. now I'm working on a x64 game and I cannot find a way
Joined: 25 Jan 2006 Posts: 8519 Location: 127.0.0.1
Posted: Sat Aug 19, 2023 12:15 am Post subject:
Microsoft's compiler does not support inline assembly when compiling for x64 (or ARM).
You can, however, make use of their MASM build tooling while also compiling a C++ application to build .asm scripts into your application/module. With that, you can then use the scripts you create in asm directly within your C++ code, meaning you can make use of the functions in a similar manner as if you were calling a C/C++ function. Using that setup you can do hooks/detours, patches, etc. to jump to your asm function (assuming you're in an injected DLL etc.) which will mimic the setup of inline asm, just with a bit more work/steps.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum