c3c icon indicating copy to clipboard operation
c3c copied to clipboard

Inline asm support all x64 functions

Open lerno opened this issue 3 years ago • 7 comments

List here: https://www.felixcloutier.com/x86/

lerno avatar Sep 05 '22 13:09 lerno

And here: https://github.com/netwide-assembler/nasm/blob/master/x86/insns.dat :) https://github.com/netwide-assembler/nasm/blob/master/x86/regs.dat

And very big (105M): https://uops.info/instructions.xml

data-man avatar Sep 05 '22 15:09 data-man

It's pretty easy to add more instructions so I appreciate contributions there.

lerno avatar Sep 05 '22 20:09 lerno

x64/x86 opcodes are added here: https://github.com/c3lang/c3c/blob/master/src/compiler/asm_target.c in init_asm_x86 While the code needs some work to support vector and floats + addresses, all the general register opcodes can be added (and the rest could be added by commented out with pseudo code). This only needs work looking through the intel manuals.

lerno avatar Sep 07 '22 07:09 lerno

Also: https://docs.oracle.com/cd/E53394_01/pdf/E54851.pdf

lerno avatar Sep 07 '22 11:09 lerno

https://fastapi.metacpan.org/source/BOGDRO/Asm-X86-0.62/lib/Asm/X86.pm

lerno avatar Sep 07 '22 11:09 lerno

https://docs.google.com/document/d/1hwABu-SL6u2cdhVkjOCUU6T0UyALujep1NfwYfQzWSo/edit#

lerno avatar Sep 07 '22 11:09 lerno

I don't know Python but this can be useful (with instructions.xml from uops.info): https://github.com/andreas-abel/XED-to-XML/blob/master/xmlToAssembler.py

data-man avatar Sep 11 '22 08:09 data-man