Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Off-topic inspiring technical stuff

Reply to topic Goto page Previous  1, 2, 3, 4, 5, 6, 7
Author Message
  • Joined: 07 Apr 2021
  • Posts: 20
Reply with quote
Post Posted: Wed Mar 20, 2024 3:53 pm
sverx wrote
Well, if I understand correctly, the crash doesn't really happen because of bugs but because the score calculation happens to eat too many CPU cycles later on.
In other words, even with all the bugs still present, if one replaces the current code that handles the score with something that performs in a (safe) fixed amount of time - which is totally possible - then the resulting ROM will be still bugged but won't crash.

Am I wrong? :|


Right, that was part of the issue! That delay would cause the interrupt to happen before the code loop is done. If that happens after a jump destination is stored in RAM, but before it's used, the address in RAM gets spoiled, and the program jumps to an unintended address.
  View user's profile Send private message
  • Joined: 25 Feb 2006
  • Posts: 874
  • Location: Belo Horizonte, MG, Brazil
Reply with quote
Post Posted: Wed Mar 27, 2024 3:26 pm
A raytracer implemented as a ASIC:
  View user's profile Send private message Visit poster's website
Reply to topic Goto page Previous  1, 2, 3, 4, 5, 6, 7



Back to the top of this page

Back to SMS Power!