I want to pass a parameter to an assembly function from C.
On a UNIX-like system, the first six parameters go into rdi, rsi, rdx, rcx, r8, and r9.
On Windows, the first four parameters go into rcx, rdx, r8, and r9.
Now, my question is: On the BIOS- or DOS programming level, which registers receive these parameters? If the number of parameter are more than 6, how do I write the assembly to handle these parameters?