Linux x64 Assembly Tutorial 4: Passing Parameters and Coding @WhatsACreel
Linux x64 Assembly Tutorial 4: Passing Parameters and Coding  @WhatsACreel
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!
Linux x64 Assembly Tutorial 4: Passing Parameters and CodingDirect2D Tutorial 3: Direct 2DC# Windows 8 Tutorial 6: FinalFixed Point Arithmetic 2: Multiplication and DivisionNVIDIA CUDA Tutorial 10: Blocking with Shared Memoryx64 Assembly Tutorial 55: MXCSR RegisterJava Tutorial for Beginners 2: Important Data TypesIEEE 754: Introduction to Floating Point FormatDirect2D Tutorial 1: Intro and WinMain EntryC++ Tutorial 8: Switch StatementsLearn Python Programming 4: Learn For LoopsExploring Cliques and Clique Problems
Creel |

Linux x64 Assembly Tutorial 4: Passing Parameters and Coding

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER