bugzmanov / nes_ebook

A mini book on writing NES emulator using rust lang

Home Page:https://bugzmanov.github.io/nes_ebook/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chapter 3.4 doesn't mention that you should change the load function

tralph3 opened this issue · comments

I just got out of a 2 hour debugging session. After days of implementing processor instructions, I just wanted to see something run, but to my dismay, the SDL window opened and quickly closed, without showing anything. To discard any possible problems in my OS or libraries or whatever, I ran the version in this repo, and it worked.

After scratching my head for a while, I realized that the load function quietly changed to load the contents of the program to another memory location. As you can see, in the previous chapter it's different.

Please, state this clearly in the book. This program expects its code to be in a different memory location.

hey @tralph3 . Sorry for causing you pain. And thank you for the feedback. I'll try to make it more clear

No problem, thank you for the great work!

Bump, issue has still not been fixed. Great tutorial though!

@pickles976 thank you for reminding me about this.

Living a hectic life of a new father and forget about everything 😪
I've updated and put a note regarding new code location in memory.

Thank you @tralph3 @pickles976

Sorry for bugging you. Congrats on being a dad!