asmcall.md

July 11, 2024 ยท View on GitHub

Asmc Macro Assembler Reference

ASMCALL

User Defined Convention.

Registers are by default assigned to arguments in the order AX/DX/CX, EAX/EDX/ECX, or RAX/RDX/RCX/R8/R9/R10/R11. Arguments are assigned from right to left.

The 32 and 64-bit version assign float values to SIMD registers 0 to 15.

asmcallparammaxminclean-upmangle
16-bitreg42callerfoo
32-bitreg84callerfoo
64-bitreg164callerfoo

Register param are sign-extended to min and register-pair are allowed up to max.

See Also

Procedures | Directives Reference | .PRAGMA