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.

DS development > Questions of Pa libraries

#45749 - Lord_Rafa - Tue Jun 14, 2005 4:00 pm

Hi all, I have three questions about PA libraries

The first question is how make a program "Hello World"

The second question is why all programs that I compile occupy 23 MBs

And the third question why when I compile any program he gives me these errors:

c:/ndsdev/projects/PA/arm7/PA.cpp: In function `void InterruptHandler()':
c:/ndsdev/projects/PA/arm7/PA.cpp:112: error: 'volatile struct sTransferRegion' has no member named 'touchXpx'
c:/ndsdev/projects/PA/arm7/PA.cpp:113: error: 'volatile struct sTransferRegion' has no member named 'touchYpx'
c:/ndsdev/projects/PA/arm7/PA.cpp:116: error: 'volatile struct sTransferRegion' has no member named 'battery'
c:/ndsdev/projects/PA/arm7/PA.cpp:117: error: 'volatile struct sTransferRegion' has no member named 'aux'

#45755 - Mollusk - Tue Jun 14, 2005 5:18 pm

Go to http://existepas.multimania.com/PA and download either PA.zip or PA_0.38.zip
They should contain info on how to install...
For the error message, it comes from an outdated version of ndslib... ndslib is updated in the version downloaded with PA, just follow the instructions...

It also contains a template. This template is pretty much a hello world, it shows out the functions for sprite loading, background loading, writing to the screen, using the pad and stylus...

Also, the 23Meg size was a bug with older PA versions, should be fixed with the latest one...

#45756 - Lord_Rafa - Tue Jun 14, 2005 5:30 pm

Thank you the errors have disappeared but the "hello world" doesn't work in the nintendo DS I am using the flashme and the Ez-Flash 2 Powerstar 256 Mbs A12

#45757 - josath - Tue Jun 14, 2005 5:49 pm

Do other people's demos work on your ds? can you post the .nds here so we can test it to see if it works or not also?

#45758 - Lord_Rafa - Tue Jun 14, 2005 6:08 pm

In my DS some roms works Here is the souerce code and .Nds
http://thetruelord.no-ip.org/tutos/pa.rar

#45760 - Mollusk - Tue Jun 14, 2005 6:31 pm

If you took PA.zip, you MUST update to devkit r12... some stuff has changed and the new templates are just not compatible with older versions it seems

#45766 - Lord_Rafa - Tue Jun 14, 2005 7:22 pm

I have the r12 but don't work
EDIT: Sorry you were right I had the r11