I'm reading through the book posted on the gp2x wiki about arm assembly.
I compiled the first small test from the book which is:
CODE
MOV R0, #1;@Initialise count
.loop SWI writeI+"*";@Print a "*"
ADD R0, R0, #1;@Increment count
CMP R0, #20 ;@Compare with limit
BLE loop
I compiled it...