Mixed Function Arguments in x86-64 Assembly - Integers & Floats Explained
Quick guide to passing mixed int + float arguments in x86-64 assembly (System V ABI). See why rdi can still be the first integer after several doubles, why xmm registers count separately, and how return values switch between rax and xmm0. Perfect for YASM/NASM programmers interfacing with C/C++. Intro to Mixed Arguments 00:00 Simple Integer-Only Functions 00:46 Adding Arguments and Return Values 01:01 Integer Arguments in RDI and RSI 01:30 Pointers Treated as Integers 02:06 Introducing Floating-Point Returns 02:31 Returning Double in XMM0 03:06 First Float Argument in XMM0 03:36 Float Registers Count Separately 04:03 Integer Register Order Explained 04:16 Separate Counting for Integers and Floats 05:21 RSI as First Integer After Float 05:38 Reference to Ed Jorgensen's Book 07:00 Callee-Saved Registers Overview 07:56 Complex Mixed Argument Examples 09:48 Inserting Integer Among Floats 10:57 Skipping Float Registers on Integer 11:18 Calling C from Assembly Notes 11:56 Name Mangling Reminder 12:21 Closing Remarks and Thanks 12:30 Call to Subscribe and Support 13:04 Website and QR Code Mention 13:38 Final Thanks and Outro Music 14:19 =-=-=-=-=-=-=-=-= Thanks for watching! Find us on other social media here: https://www.NeuralLantern.com/social Twitter / X: https://x.com/NeuralLantern Rumble: https://rumble.com/c/c-3696939 BitChute: https://www.bitchute.com/channel/pg1P... Daily Motion: https://www.dailymotion.com/neurallan... Minds: https://www.minds.com/neurallantern/ Odysee: https://odysee.com/@NeuralLantern:5 Please show your support! Buy me a coffee: https://ko-fi.com/neurallantern Subscribe + Sharing on Social Media Leave a comment or suggestion Subscribe to the Blog: https://www.NeuralLantern.com Watch the main "pinned" video of this channel for offers and extras

x86-64 Assembly Pointers & Dereferencing Explained - Hybrid C++/YASM Example

Why we still use C despite so many C alternatives

Chip design from the bottom up – Reiner Pope

C++ Compilation Process Explained Before Learning CMake

The Professor Who Taught People How To Think (1962)

Co-Creator of Haskell: Functional Programming, Thinking in Types, Useless Languages | Simon Jones

I Wish Someone Explained The Linux Filesystem Like This

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

Programming in Assembly without an Operating System

No Celebrity Has ZERO Filter Like Harrison Ford _ and It’s HILARIOUS!

How Assembly Functions Work - The Stack Explained

Why Aliens Would NEVER Invade Africa

Stackmaxxing for a recursion world record

How do computers read code?

The Call Stack Explained: Call Frames, Return Addresses, Local Variables

RollerCoaster Tycoon Optimizations are Insane

Ägypten – Iran Highlights | Gruppe G, FIFA WM 2026 | sportstudio

How To Become Dangerously Self-Educated (with AI)

