Re:Learning to Read X86 Assembly Language
by Merad on Sunday November 27, 2016 @07:20PM
(#13052519)
This is determined by the calling convention [0]. If you're interacting with code that you didn't write, you need to know the calling convention that they use in order to set up arguments correctly.
0: https://en.wikipedia.org/wiki/X86_calling_conventions