Surprise Me!

Mixed Function Arguments in x86-64 Assembly - Integers & Floats Explained

2026-03-01 1 Dailymotion

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++. <br /><br />Intro to Mixed Arguments 00:00 <br />Simple Integer-Only Functions 00:46 <br />Adding Arguments and Return Values 01:01 <br />Integer Arguments in RDI and RSI 01:30 <br />Pointers Treated as Integers 02:06 <br />Introducing Floating-Point Returns 02:31 <br />Returning Double in XMM0 03:06 <br />First Float Argument in XMM0 03:36 <br />Float Registers Count Separately 04:03 <br />Integer Register Order Explained 04:16 <br />Separate Counting for Integers and Floats 05:21 <br />RSI as First Integer After Float 05:38 <br />Reference to Ed Jorgensen's Book 07:00 <br />Callee-Saved Registers Overview 07:56 <br />Complex Mixed Argument Examples 09:48 <br />Inserting Integer Among Floats 10:57 <br />Skipping Float Registers on Integer 11:18 <br />Calling C from Assembly Notes 11:56 <br />Name Mangling Reminder 12:21 <br />Closing Remarks and Thanks 12:30 <br />Call to Subscribe and Support 13:04 <br />Website and QR Code Mention 13:38 <br />Final Thanks and Outro Music 14:19 <br /><br />x86-64 assembly, x86 assembly, assembly language, yasm, nasm, system v abi, abi calling convention, mixed arguments, integer float arguments, xmm registers, rdi rsi xmm0, floating point registers, linux assembly, ubuntu assembly, low level programming, ed jorgensen, function calling convention, rax return, xmm0 return, assembly tutorial <br /><br />=-=-=-=-=-=-=-=-= <br /><br />Thanks for watching! <br /><br />Find us on other social media here: <br />- https://www.NeuralLantern.com/social <br />- Twitter / X: https://x.com/NeuralLantern <br />- Rumble: https://rumble.com/c/c-3696939 <br />- BitChute: https://www.bitchute.com/channel/pg1Pvv5dN4Gt <br />- Daily Motion: https://www.dailymotion.com/neurallantern <br />- Minds: https://www.minds.com/neurallantern/ <br />- Odysee: https://odysee.com/@NeuralLantern:5 <br /><br />Please show your support! <br /><br />- Buy me a coffee: https://ko-fi.com/neurallantern <br /><br />- Subscribe + Sharing on Social Media <br />- Leave a comment or suggestion <br />- Subscribe to the Blog: https://www.NeuralLantern.com <br />- Watch the main "pinned" video of this channel for offers and extras <br />

Buy Now on CodeCanyon