Uploaded May 2013 | Updated September 2026, 2 weeks ago
In this tute we'll get to coding some little ASM algorithms. First we have to look at how parameters will be passed from C++.
Just for reference:
Integers are returned in RAX
1st parameter is passed in RDI
2nd is passed in RSI
3rd is passed in RCX
4th is passed in RDX
5th is passed in R8
6th is passed in R9
Any parameters after that are passed on the stack.
This is only for integer values, floats are passed in different registers!
In this tute we'll get to coding some little ASM algorithms. First we have to look at how parameters will be passed from C++.
Just for reference:
Integers are returned in RAX
1st parameter is passed in RDI
2nd is passed in RSI
3rd is passed in RCX
4th is passed in RDX
5th is passed in R8
6th is passed in R9
Any parameters after that are passed on the stack.
This is only for integer values, floats are passed in different registers!










