Regarding Flight
Moderator: BigEvilCorporation
Regarding Flight
I had a memory question regarding memory
I have been through the sega programming faq and the memory maps and rom memory etc such as Sonic vs Ecco the Dolphin.
What i would like to know is.
-How much ROM is reserved for sprites versus backgrounds versus sound versus music, and so forth?
Generally for most games.
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
I just build things until I reached cart limit, and hope the limit comes after all the planned content is present...
I have like 1Mbyte for sound and music and the rest is divided up for code, GFX and other data.
I have like 1Mbyte for sound and music and the rest is divided up for code, GFX and other data.
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
This is really depends from the game. Usually, the graphics took most of memory (thus is compressed sometimes). Levels data could take much memory too. Digitized samples also use much memory, but that's rare for SMD game to have many samples. Music data usually very compact compared to other resources.
ROM is not reserved at all, you can use any ROM data to feed any I/O chip. VRAM is partially reserved - while tile data can go pretty much anywhere, you have to assign certain ranges of VRAM to the nametables, sprite tables, and horizontal scroll RAM. Those ranges are not hardcoded, however, and you do have some flexibility as to where they go.
If you use the Z80 exclusively for sound, then Z80 RAM will be dedicated to that purpose (although it can still read from ROM).
If you use the Z80 exclusively for sound, then Z80 RAM will be dedicated to that purpose (although it can still read from ROM).