Modern x64 Assembly 5: MOV and LEA @WhatsACreel
Modern x64 Assembly 5: MOV and LEA  @WhatsACreel
Uploaded June 2017 | Updated September 2026, 2 weeks ago
This video is about the MOV and LEA instructions. MOV is the most commonly used instruction of all (that has a lot to do with the fact that x86 uses destructive instructions).

MOV is used to copy data from the source operand into to the destination. When the source operand is RAM (a variable for example), the MOV instruction moves the data at the address into the destination. So if you have a variable at the address 25, with the value 7, MOV will move the value 7 into the destination.

The LEA instruction is used to load a pointer into a register. It is actually an arithmetic instruction, and does not read RAM at all. When a memory operand is used as the source, the instruction loads the address of the operand, not the value. So the instruction is useful for loading an address into a register, effectively creating a pointer to the address: "LEA RCX, someVariable" makes RCX point to the address of the someVariable variable. So if you have a variable at the address 25, with the value 7, the LEA instruction will move 25 into the destination, not the 7 like MOV.

Support What's a Creel? on Patreon:
patreon.com/whatsacreel

FaceBook:
facebook.com/whatsacreel

Music Channel:
youtube.com/channel/UC2nWRGqPL6O-Lm8mexWhISQ
Modern x64 Assembly 5: MOV and LEALinux 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 Loops
Creel |

Modern x64 Assembly 5: MOV and LEA

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER