This post to show you the result of a wasted saturday late evening: my first nds demo compiled by freepascal. :mrgreen:
Only for your eyes, here is a screenshot of the demo (as for the gba, a wonderful red pixel in the middle of the screen!):



In short: it's a demo made using only the compiler, without rtl and without linker script/crt0 (yes, like the gba: stripping out things in the generated asm file )
Next step is to make a working crt0 and linker script (the step that drove me crazy with gba compiler...) and making a better rtl (the current nds rtl is only a draft made by the gba one).