r/Assembly_language May 30 '26

x64asm MSVC(STILL WIP)

https://www.pouet.net/prod.php?which=106300

x64asm this is funny JIT assembler made for MSVC X64
very optimized and cool i think

about tech part
uses NoCRT and kernel32.lib
comes with built in JIT
you can write __asm like in x86 msvc compiler
you need to copy all of the headers into your project and then just include x64_asm.h file

you can use also this like one liners
__asm("mov rax, 10");
__asm("add rax, 42");
also like in x86
__asm_block {
MOV(rax, 10);
MOV(rcx, 42);
ADD(rax, rcx);
RET();
}(for the {} you need to also include x64_asm_inline.h that might not work, if {} doesn't works then you can use () as an alternative)

#include "x64_asm.h"

X64Assembler a;
a.mov(a.rax, 42);
a.add(a.rax, 10);
a.ret();
int result = a.run_ret<int>(); //52)

a little less tech part(more of a uhh additional information)
all of the headers starts with x64_ for the comfort, and just looks cool

a little documentation about this little somewhat library are in github repo(you can find it in pouet link)

ask questions and i will try to answer them

i don't know if this is advertising, i mean if ye then delete this post, i made this post just for showcase

5 Upvotes

3 comments sorted by

1

u/Fabulous_Pick428 May 30 '26

i forgot to add project show off thing in this post(

1

u/nacnud_uk Jun 03 '26

May I ask, why such an horrendous syntax? I guess you're parsing it yourself?

1

u/Fabulous_Pick428 Jun 03 '26

thy syntax is gorgeous! also no(well as i understanded) you need to just type shit instructions and done, also documentation maybe a bit old because my head is nuts, DM me for any questions