ProfessionalCSharp2021 icon indicating copy to clipboard operation
ProfessionalCSharp2021 copied to clipboard

Possible inaccuracy about stack pointer behavior on page 337

Open LaLa-HaHa-Hei opened this issue 4 months ago • 0 comments

Hi,

I noticed a potentially misleading statement in this book, on page 337, second to last paragraph, lines 4–5. The text says:

"As data is put on the stack, the stack pointer is adjusted accordingly, so it always points to just past the next free location."

In most common hardware architectures, the stack pointer (SP) typically points to the top of the stack, which is the last used address, not the next free location.

So the sentence could be misleading.

Thanks for your work on the book!

LaLa-HaHa-Hei avatar Aug 08 '25 01:08 LaLa-HaHa-Hei