oss003 wrote: ↑Sun Sep 26, 2021 10:41 am
Which memory area's does the menu use?
Is the menu using #9800-#9FFF?
It's complicated!
Chapters's A-F are designed to be small enough to fit in a 6K + 6K Atom.
Chapter G is designed to run only on a 32K + 6K Atom.
They obviously have different memory layouts.
Looking at the Chapter C (currently 201 AGD titles), in V11.01 we have :
Code: Select all
2800-3132 - MENU (code)
3200-32FF - row buffer (data, runtime)
3300-3A19 - spare
3A20-3A69 - MENU1 (data)
3A6A-3BFF - SORT0..3 (data)
8200-9270 - MENU2 (data)
9271-97FF - spare
The limiting factor here is the MENU2 region (which stores the title table)
I estimate we have space for about another 70 titles, after that we would have to split the AGD chapter.
Looking at Chapter G (everything, currently 983 titles), in V11.01 we have
Code: Select all
0400-27FF - spare
2800-3132 - MENU (code)
3200-32FF - row buffer (data, runtime)
3300-774D - MENU2 (data)
774E-7FFF - spare
8200-8776 - spare
8777-904D - MENU1 (data)
904E-97FF - SORT0..3 (data)
The limiting factor here is the MENU2 region (which stores the title table)
I estimate we have space for about another 125 titles, after that we would have to re-think things.
oss003 wrote: ↑Sun Sep 26, 2021 10:41 am
Well, I now have anoher 27 games ready for publishing but there are still 36 waiting for conversion if possible.
Are the 27 titles ready for AGD 56-62 packs in the next few weeks? If so, I'll hold off.
Let's add all those up...
- 15 titles in AGD packs 52..55
- 27 more titles ready to go
- 36 titles beyond that
= 78 titles
That might take us to the point where we need to split the AGD Chapter to fit in a 6K+6K Atom.
Longer term, it's generally the title table (MENU2) that is the largest single table, and it needs to be in contiguous memory. The same MENU program needs to run on a normal and expanded Atom. It might make sense to load the MENU program to 8200, then you have the whole 32K for data. That would really help with Chapter G, but then it reduces the space for Chapters A..F (0x1600 bytes down to 0x1400 bytes). Chapter A title table is currently the largest, at 0x1202 bytes. You see how it's a bit of a juggling act. Luckily it's mostly automated!
Dave