Let's take a look of how IDA displays address of local variable. For instance:
MOV EAX, [EBP + var_4]
As we all know as far as local variables go, they are located at lower addresses of EBP.
Though, I have been taking it for granted and inevitable, I am still very curious. Why does IDA display local variable offset as [EBP + var]
, not [EBP - var]
?
Thank you so much.