I'm new and I'm practicing computer science alone as a passion. In assembly a base pointer is used that allows me to refer to a specific memory location by subtracting a certain offset from the base pointer. What is obtained is the absolute address. EBP - offset = absolute address. But where is this subtraction performed?
in which register is the absolute address calculated?
I give a example of my confusion.
If I have MOV dword ptr[EBP], 10
in this case the value of EBP register represent the absolute address.
But if i have MOV dword ptr[EBP - 4], 10
in this case from the ebp address 4 bytes must be subtracted.
In which register is done this operation, where is written the result of this calculation?