Here is the FAQ about Nethack on Palm computer, version 0.1A. To be posted monthly.
Alternatively, you can write a program which parses C code and adds code which reads from/writes to databases.
The screen interface will also be different, but thats an easier part, IMO.
All of these are free with source.
There are also many good commercial roleplaying games for Palm OS, The best and the the most roguelike of them is Ackeron with 160 objects and 70 monsters.