robmcmullen / omnivore

Hex editor and debugging emulator, sponsored by the Player/Missile Podcast
Mozilla Public License 2.0
53 stars 7 forks source link

Check for size limits in harvest table #93

Closed robmcmullen closed 7 years ago

robmcmullen commented 7 years ago

Looking at the routine at $4b00, it looks like there is a 256 byte limit for the harvest table. Each harvest table entry is 6 bytes long, so that means there's a limit of 42 triggers.

Need to add a check for this in the code so it can flag the user.

robmcmullen commented 7 years ago

Duh. What this really means is that there's a limit of 42 peanuts since every peanut has a harvest table entry! It's been a long time since I read the reverse engineering document.