Skip to content

Conversation

@Diet-Gameboy
Copy link

@Diet-Gameboy Diet-Gameboy commented Feb 17, 2025

On line 76 of init.asm I found that the jump vector for the game_finished function was commented out and in its place jr level_loader was there instead. I'm assuming this is what's causing that crashing behavior as when the game attempts to finish it instead just jumps to the level_loader function again causing erronious behavior. I have put the jump vector back as well as padding it with a nop to make it the required 4 bytes size. Now the game should exit correctly.

…shed function was commented out and in its place jr level_loader was there instead. I'm assuming this is what's causing that crashing behavior as when the game attempts to finish it instead just jumps to the level_loader function again causing erronious behavior. I have put the jump vector back as well as padding it with a nop to make it the required 4 bytes size. Now the game should exit correctly. -Diet_Gameboy 2-17-2025
@Diet-Gameboy Diet-Gameboy reopened this Feb 17, 2025
@Diet-Gameboy Diet-Gameboy changed the title On line 76 of init.asm I found that the jump vector for the game_fini… Fix for issue #205 "Phoenix crashes after playing through a certain number of levels" Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant