Devlog #4: Stack Overflow
After finding that it works last devlog, it didn’t actually work, because all my other roms kept crashing with stack overflow error. I, of course, started searching for an infinite loop (as one does when confronted with a stack overflow), but this was my first EVER stack overflow without an infite loop. Just shouldn’t have put 32 KiB of ROM on the stack. For anyone wondering, the rom I showed used a variable length cartridge and was because of that already on the heap.
I also did some minor refactoring:
- The header utility has now its own crate
- I use anyhow for errors
- Removed tons of obsolete comments and prints
- Header details can now be printed to the console for debugging