Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note on stack pointer override in Chapter 4 #34

Open
achester88 opened this issue Apr 30, 2024 · 0 comments
Open

Add note on stack pointer override in Chapter 4 #34

achester88 opened this issue Apr 30, 2024 · 0 comments

Comments

@achester88
Copy link

After the switch to using the cpu VRAM the stack pointer retrieval from 0xFFFC no longer works. This is fixed in chapter 4 in main.rs by setting the stack pointer to 0x0600 between reset and run sections. link

When I ran into the issue I thought I had made a mistake with the bus addressing and debugged for quite some time before realizing that the read and write were just ignored and the stack pointer manually set.

This definitely feels like something that should be mentioned in the book.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant