Skip to content

Possible inaccuracy about stack pointer behavior on page 337 #249

@LaLa-HaHa-Hei

Description

@LaLa-HaHa-Hei

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions