gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > memory question

#26448 - hakanyuksel - Thu Sep 16, 2004 12:03 am

in which area of the memory does the picture(or any other game assets) arrays take place; For example when i declare an array like this where does it go, to the external ram or game pak rom?
Code:

const u16 kasaba[1024]=
{
0x0004,0x0005,0x0006,0x0007,0x0004,0x0005,0x0006,0x0007,0x0004,0x0005,0x0006,0x0007,0x0004,0x0005,0x0006,0x0007,0x0004,0x0005,
.....
.....
}

_________________
--------------------
Hakan Yuksel
3TE GAmes
www.3tegames.com

#26451 - LOst? - Thu Sep 16, 2004 12:18 am

hakanyuksel wrote:
in which area of the memory does the picture(or any other game assets) arrays take place; For example when i declare an array like this where does it go, to the external ram or game pak rom?
Code:

const u16 kasaba[1024]=
{
0x0004,0x0005,0x0006,0x0007,0x0004,0x0005,0x0006,0x0007,0x0004,0x0005,0x0006,0x0007,0x0004,0x0005,0x0006,0x0007,0x0004,0x0005,
.....
.....
}


When using "const", it will be placed in ROM. So no RAM is used.