title: Passing Parameters in 64 bit Assembly Function from C language. Which Register Receive These Parameter?
body: <p>I want to pass a parameter to an assembly function from C. </p>
  
  <p>On a UNIX-like system, the first six parameters go into rdi, rsi, rdx, rcx, r8, and r9.</p>
  
  <p>On Windows, the first four parameters go into rcx, rdx, r8, and r9. </p>
  
  <p>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?</p>