The infamous level 256 glitch in Pac-Man is caused by a registry overflow
Simply put, the code responsible for drawing the fruit sprites at the bottom ends up looping back to 0 since a byte can't hold a number higher than 255. This inadvertently messes with the values it expects