|
From: | Alexander Kapshuk |
Subject: | Re: [Pgubook-readers] Stack Diagram confussion |
Date: | Thu, 23 Nov 2017 17:46:10 +0200 |
Greetings.I just want to know if the way I am understanding this is correct.%ebx should contain the Base Number and %ecx should contain the power.This is the code:Power <--- 12(%ebp)In page 63, inside the 'All about functions' chapter, this diagram of the stack appears:And for my understanding, and from my lecture of the code. I think that this diagram have the Base Number and Power attributes in reverse order. The stack should look like this:
B, Number <--- 8(%ebp)
Ret Addr <--- 4(%ebp)
Old %ebp <--- (%ebp)
Current Res <--- -4(%ebp)
_______________________________________________
Pgubook-readers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/pgubook- readers
[Prev in Thread] | Current Thread | [Next in Thread] |