here is the code:
http://rapidshare.com/files/34337474/arm-nds.rar.html

Good investigation ^^