Introduction To X86 Disassembly Link
When it’s done, it that memory back off the stack to return home. The Conclusion
Before you look at the code, you look at your tools. Your workbench has a few small slots to hold data while you work. In x86, these are your : EAX: Your primary calculator. Introduction to x86 disassembly
This is a fork in the road. If the answer isn't 20, the machine "jumps" to a completely different section of code. When it’s done, it that memory back off
To understand how it works, you have to look at the "gears" while they move. In the world of computers, those gears are and Instructions . 1. The Workbench (The CPU & Registers) In x86, these are your : EAX: Your primary calculator
It goes off to perform a "Function" (like calculating a tax rate).
As you dig deeper, you find a "Stack"—a literal pile of data. Programs use the to remember where they were before they started a side-task. The program PUSHes its current location onto the stack.
The "Instruction Pointer," the finger that points to the exact line of code currently being executed. 2. The First Discovery: MOV and ADD