Page 1 of 1

Regarding Flight

Posted: Wed Jan 13, 2010 7:36 am
by Alex Khan
:D

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.

Posted: Wed Jan 13, 2010 7:55 am
by TmEE co.(TM)
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.

Posted: Wed Jan 13, 2010 11:44 am
by Shiru
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.

Posted: Wed Jan 13, 2010 8:13 pm
by LocalH
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).

Posted: Mon Jan 25, 2010 12:45 pm
by Alex Khan
interesting info thank you gentleman