//word of the day: pedagogical

good read :

Developing modules for the Apache HTTP Server 2.4

Crash into Assembly x86

The x86 Architecture:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/9bb1ec1c-1008-465a-86fa-01ca624003c6/Untitled.png

EFLAGS for the result of operation: 0️⃣ or 1️⃣

SUB dest, Value will modify two flags: ZF, CF. ZF will be set if the result is zero, and CF is set if the dest is less than the value used to subtract.

Bits shifted beyond the destination boundary are first shifted into the CF flag.

ROR, ROL, flip the high and low indices of a register.

Function calls are made by Call, *function_in_memory_address. Push EIP for later Leave.

Each time a call is performed, a new stack frame is generated.