| |||
Views: 88,314,558 |
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search | 03-28-24 11:49 PM |
|
Guest: Register | Login |
0 users currently in ROM Hacking | 3 guests |
Main - ROM Hacking - Question about Endless Loop | New thread | New reply |
RetroRain |
| ||
Fuzz Ball Level: 66 Posts: 572/994 EXP: 2432458 Next: 29393 Since: 09-30-07 Last post: 1906 days Last view: 929 days |
I was taking a look at the Super Mario Bros. Disassembly. And I noticed this once before when I was looking at a tutorial to program a NES demo. Is the endless loop the very last line of code that is run? Because if it is not, I don't see how all of the code after it can run if it is constantly stuck in that loop. I just wanted to validate that logic.
____________________ My YouTube Channel |
never-obsolete |
| ||
Rat Level: 24 Posts: 82/96 EXP: 74326 Next: 3799 Since: 02-22-07 From: Phoenix, AZ Last post: 2567 days Last view: 2567 days |
The loop is broken when the nmi is triggered at the start of vblank. From my understanding of SMB, all game logic is run in the nmi handler and the “main“ thread is just a loop. There's a thread over at nesdev about the pros and cons of this method versus others.
|
RetroRain |
| ||
Fuzz Ball Level: 66 Posts: 574/994 EXP: 2432458 Next: 29393 Since: 09-30-07 Last post: 1906 days Last view: 929 days |
Thanks never-obsolete. ____________________ My YouTube Channel |
Main - ROM Hacking - Question about Endless Loop | New thread | New reply |
© 2005-2023 Acmlm, blackhole89, Xkeeper et al. |
MySQL - queries: 47, rows: 69/70, time: 0.016 seconds. |