bugzmanov / nes_ebook

A mini book on writing NES emulator using rust lang
https://bugzmanov.github.io/nes_ebook/index.html
385 stars 68 forks source link

fix code to pass cpu.rs module test at ch3.3 #12

Open 123zmz123 opened 3 years ago

123zmz123 commented 3 years ago

to be honest , I do not think we should put reset() in load_and_run() at this chapter other features were not implemented currently, after load the program , if we force cpu reset,all the pre-configured parameter like prgrame file , register statu,will all be lost,definitely we can't pass any test. so I suggest change the code. After the change test result will pass. The test result as below image