You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I replaced the display_sprites routine to draw four sprites on the screen, three are static and one moves around based on the Hw32xGetTicks value. However, strangely in the current version, the code crashes whenever the sprite crosses the screen boundaries, either horizontally or vertically.
Using Gens KMod, the horizontal crash seems to happen on address $06000B5C (it also causes the emulator to CTD) and the vertical crash seems to happen on address $06000BCC. Using a decompiler, I figured out that the issue seems to lie on the PIX_LOOP routines, the counter seems to underflow.
Thank you for the attention!
The text was updated successfully, but these errors were encountered:
My bad, friend! Just one thing to add, I thought this crash was happening due to my modifications but I can replicate this on a fresh/clean source by replacing display_sprites with this:
I replaced the display_sprites routine to draw four sprites on the screen, three are static and one moves around based on the Hw32xGetTicks value. However, strangely in the current version, the code crashes whenever the sprite crosses the screen boundaries, either horizontally or vertically.
Using Gens KMod, the horizontal crash seems to happen on address $06000B5C (it also causes the emulator to CTD) and the vertical crash seems to happen on address $06000BCC. Using a decompiler, I figured out that the issue seems to lie on the PIX_LOOP routines, the counter seems to underflow.
Thank you for the attention!
The text was updated successfully, but these errors were encountered: