Assembly language programming is has many similarities to programming your calculator because your calculator only uses registers and key functions.
- Youtube: NASM Assembly programming Tutorial 01
- Establishing a new stack frame when entering a function
- A small single line function declaring a 4 byte integer in assembly
- Understanding C by learning assembly
- x86 Assembly Guide
- SolidusCode Script for compiling
For this example with the NASM assembler: opcode destination, source
Base Pointer: EBP: As the stack grows and shrinks during a function the offset of local variables and function parameters relative to ESP changes. To simplify things Intel uses a base pointer (sometimes called a frame pointer) that is stored in EBP. EBP is a pointer to the top of the stack when the function is first called.