first, sorry for the previous anonymous post.

second i found a better crt0.s and makefile (at least it is smaller and easier to understand). take a look here: http://velvetfr.ath.cx/gba/tutorial/gba-tutorial1.html .

thirdly in the first test pascal sources we should not use variables as variables should be placed in a specific place in gba memory. i believe that the program starts up in rom and so all variables end up being in rom?.