pigeonaut
Member
Hey everyone!
Been trying to free up some space in the PRG $1F so that I can add more custom scripts! I thought I would first share what I have found and then ask you guys what else you recommend.
1. I have been going through this neat guide and shortened some of my own scripts:
2. I have tried this boomerang method: https://www.nesmakers.com/index.php?threads/more-space-for-code-with-bank-boomerangs.4907
And I have tried this bank switching method: https://www.nesmakers.com/index.php?threads/4-5-6-fun-with-bank-switching.6253/
Both are super awesome and I was able to move "stuff" from bank 1C to the empty bank 1D with success! But I was not able to free up space in PRG $1F.
3. Lastly I removed some unneeded scripts out of the scripts/input folder on the bottom left and removed some unneeded ai action scripts. This gave me some more room to add in just a few more extra scripts.
4. This is a very nice explanation of bank switching: https://www.nesmakers.com/index.php?threads/more-space-for-scripts.2172/
5. This is a very nice explanation of banks in general: https://www.nesmakers.com/index.php?threads/the-tower-of-turmoil-cartridge-space.2078/
Here is a screenshot of my current memory (I used the nes space checker tool). As you can see, I have a tiny bit left for maybe 1 or 2 more lines of code haha.
I am currently using the metro-vania module and you only start off with about 5% (couple hundred bytes) left in the PRG $1F for your own custom scripts. I started to add in some input scripts from the adventure module and the space filled up very quickly.
Here are my questions:
A. How did games like Megaman and Metroid have so many unique enemy, boss, and weapon types? Wouldn't that have taken a lot of extra scripting?
B. Are all custom scripts, like new ai actions, tile scripts, inputs, all destined to be in $1F as soon as you hit the compile button?
C. Do you guys have any more tips on how we can squeeze out some more memory in $1F for more custom scripts?
Thanks!
Been trying to free up some space in the PRG $1F so that I can add more custom scripts! I thought I would first share what I have found and then ask you guys what else you recommend.
1. I have been going through this neat guide and shortened some of my own scripts:
6502 assembly optimisations
This page is about optimisations that are possible in assembly language, or various things one programmer has to keep in mind to make their code as optimal as possible.
wiki.nesdev.com
2. I have tried this boomerang method: https://www.nesmakers.com/index.php?threads/more-space-for-code-with-bank-boomerangs.4907
And I have tried this bank switching method: https://www.nesmakers.com/index.php?threads/4-5-6-fun-with-bank-switching.6253/
Both are super awesome and I was able to move "stuff" from bank 1C to the empty bank 1D with success! But I was not able to free up space in PRG $1F.
3. Lastly I removed some unneeded scripts out of the scripts/input folder on the bottom left and removed some unneeded ai action scripts. This gave me some more room to add in just a few more extra scripts.
4. This is a very nice explanation of bank switching: https://www.nesmakers.com/index.php?threads/more-space-for-scripts.2172/
5. This is a very nice explanation of banks in general: https://www.nesmakers.com/index.php?threads/the-tower-of-turmoil-cartridge-space.2078/
Here is a screenshot of my current memory (I used the nes space checker tool). As you can see, I have a tiny bit left for maybe 1 or 2 more lines of code haha.
I am currently using the metro-vania module and you only start off with about 5% (couple hundred bytes) left in the PRG $1F for your own custom scripts. I started to add in some input scripts from the adventure module and the space filled up very quickly.
Here are my questions:
A. How did games like Megaman and Metroid have so many unique enemy, boss, and weapon types? Wouldn't that have taken a lot of extra scripting?
B. Are all custom scripts, like new ai actions, tile scripts, inputs, all destined to be in $1F as soon as you hit the compile button?
C. Do you guys have any more tips on how we can squeeze out some more memory in $1F for more custom scripts?
Thanks!