#111014 - cesium - Sun Dec 03, 2006 5:49 pm
Reading and writing 16 and 32 bit words to RAM on a
GBA cart works fine.
The problem arises when you try to write an 8 bit byte to
RAM in the cart address space: The upper byte and lower byte
in the 16 bit word at that RAM locaction BOTH become the
value in the byte you are writing.
Not good.
The DSLinux folks have modified their compiler so that they can
read and write to RAM that has been mapped into the GBA cart
address space.
I'm not exactly sure how they did it, but it had something to do with
trapping 8 bit writes. Maybe they used the memory cache too.
Anyway, has anyone tried to use their compiler for GBA apps?
I have a cart with 8 MBytes of Flash and 16 MBytes of RAM and
I'd like to use the RAM in my C/C++ apps.
Any ideas on how to apply their success to GBA RAM expansion?
Can their toolchain be used to compile our C/C++ apps?
cesium
GBA cart works fine.
The problem arises when you try to write an 8 bit byte to
RAM in the cart address space: The upper byte and lower byte
in the 16 bit word at that RAM locaction BOTH become the
value in the byte you are writing.
Not good.
The DSLinux folks have modified their compiler so that they can
read and write to RAM that has been mapped into the GBA cart
address space.
I'm not exactly sure how they did it, but it had something to do with
trapping 8 bit writes. Maybe they used the memory cache too.
Anyway, has anyone tried to use their compiler for GBA apps?
I have a cart with 8 MBytes of Flash and 16 MBytes of RAM and
I'd like to use the RAM in my C/C++ apps.
Any ideas on how to apply their success to GBA RAM expansion?
Can their toolchain be used to compile our C/C++ apps?
cesium