Premium Only Content
x86-64 Assembly: Signed Integer Multiplication and Addition with IMUL & ADD (YASM on Ubuntu Linux)
Want to actually understand how signed integer multiplication works at the CPU level? In this straight-to-the-point x86-64 assembly tutorial we dive into the IMUL instruction - the proper way to multiply signed integers in YASM/NASM on Linux.
We cover:
* The difference between unsigned (MUL) and signed (IMUL) multiplication
* Two-operand vs three-operand IMUL forms
* Multiplying immediate values vs global variables
* Loading values into registers (mov) and performing fast multiplication
* Basic addition with ADD and INC
* Full working example that prints results so you can see it in action
* Why you should respect the ABI and save callee-saved registers (R12-R15)
Everything is built with YASM on Ubuntu, linked with a tiny C driver, and run instantly. No fluff, just real assembly code you can copy and run right now.
Code on screen, calculator verification, and clear explanation of every line. Perfect if you're learning low-level programming, reverse engineering, or just want to know what really happens when you write a = b * c; in C.
Introduction to Integer Arithmetic 00:00:00
Recommended Book and Resources 00:00:39
Instruction Set Overview 00:01:17
Addition Instruction (ADD) 00:01:43
Unsigned vs Signed Multiplication 00:02:20
Signed Multiplication with IMUL 00:03:05
IMUL Three-Operand Form 00:03:40
IMUL Two-Operand Form 00:04:12
Squaring with IMUL 00:04:50
Setting Up the Sample Program 00:05:08
Data Section and Strings 00:06:13
Text Section and External Functions 00:06:58
Math Function Entry Point 00:08:01
Multiply Test Function Setup 00:08:42
Multiplying Immediate Values 00:09:48
Printing the Immediate Result 00:10:21
Running and Verifying Immediates 00:12:53
Multiplying Global Variables 00:13:49
Loading Globals into Registers 00:14:07
IMUL with Globals Demo 00:14:37
Addition with INC and ADD 00:15:36
Final Results and Verification 00:17:09
Wrap-Up and Closing 00:17:22
Outro and Subscribe Request 00:17:44
Thanks for watching!
Find us on other social media here:
- https://www.NeuralLantern.com/social
Please help support us!
- Subscribing + Sharing on Social Media
- Leaving a comment or suggestion
- Subscribing to our Blog
- Watching the main "pinned" video of this channel for offers and extras
-
2:00:58
MG Show
19 hours agoFBI’s CRIMINAL RAID on Mar-a-Lago Confirmed; Rob Reiner BEHIND Russia Collusion?
20.1K14 -
1:00:18
Dialogue works
2 days ago $6.68 earnedLarry C. Johnson: Russia Launches Largest Missile & Drone Attack Yet
18.1K6 -
12:02
Actual Justice Warrior
1 day agoChicago Mayor Says ONLY Black Businesses Get Licensed
18.5K27 -
4:21
SethDrums
4 days ago50 Cent - In Da Club if it was 1950s
18.1K3 -
1:48:49
Badlands Media
16 hours agoDevolution Power Hour Ep. 416: The Rug Pull Cycle, False Signals & Narrative Discipline
376K44 -
1:06:11
Inverted World Live
15 hours agoA Ghost Ship in Washington, A Fire in Roswell | Ep. 155
83.3K16 -
3:06:55
TimcastIRL
11 hours agoDan Bongino To RESIGN, Trump Addresses The Nation
376K581 -
2:14:08
Barry Cunningham
11 hours agoLIVE BREAKING NEWS: President Trump Addresses The Nation! And More News!
72.6K32 -
5:15:27
ThatStarWarsGirl
13 hours agoTSWG LIVE: Discussing STAR WARS News with Special Guest Star Wars Theory!
58K5 -
2:42:40
Laura Loomer
11 hours agoEP162: LIVE: President Trump Addresses The Nation
71.2K33