From what I have read, there is a dosbox for ARM (Pocket PC's are more powerful and have many os specifics) on gp32, which would probably be easier to convert for a ds version than the pc version. I don't know whether that version is open source or not.