I saw this sample code in a previous question I asked. I was confused by how the paramaters of int add(int a, int b)
were automatically in esi and edi? Is this a default calling convention? Where can I find more of this information.
.globl _add // make it global so that others can find this symbol
....
_add: // int add(int a, int b)
movl %esi, %eax
addl %edi, %eax
ret