GP32 Heapstart


Charge

Member
Joined
May 26, 2003
Messages
206
Age
45
Location
Croydon, England
Could someone please tell me how to find out where in memory the heap starts and ends. As the work ram is from 0x0c000000 to 0x0c7fffff, I am assuming that the heap end is 0x0c7fffff, but I'm not sure, and I definately can't find the HeapStart. I've tried using gm_heap_init but that seems to set the values rather than retrieve them. Can someone help?

thanks.
 
@ Get heap end location
@

mov r0,#5
swi 0xb

@ r0 is the heap end..
 
Back
Top