GP2X Minimal Library Sdk V0.9 Out


Is the latest version of the SDK avaliable anywhere? It'd be really nice to get a copy of v 0.C
 
Is there a way in V0.B to access the hidden framebuffer from 940t code? :huh:

In 920t code i get the pointer normaly by
CODE
unsigned long *dst,i;

dst=&gp2x_video RGB[0]screen32;
for (i=0;i<38400;i++) *dst++=0xFFFF;

and this works fine.

For dualcpu in 920t code i use a shared VARIABLE_CLS (gp2x_dualcore_data(0x1012))...
CODE
VARIABLE_CLS=&gp2x_video RGB[0]screen32;

...and for 940t code
CODE
unsigned long *dst,i;

dst=VARIABLE_CLS;
for (i=0;i<38400;i++) *dst++=0xFFFF;

but now *dst points to something else.

Is the memory access diffrent from 940t's point of view?
Btw: The 940t routine works fine with a normal variable of type int,unsigned short...!

Thank you for helping me
 
Steinbock said:
Squidge said:
yes, but you have to subtract arm940 start address from frame buffer address.
Thank you Squidge. I will try it tonight, after work.


you should use gp2x_dualcore_data() macro to access that variable from both sides
the macro will do the substract for you when using in 940t land

but if you can wait, i'd suggest you to wait for 0.C, which is just almost done (99%)
i just wrote most of the documentation already (check it out at http://www.retrodev.info/temp_minimal)
hope to get about 6 hours this week to test a few functions & upload the zip
 
Last edited by a moderator:
Back
Top