fix NMI base routine to make it simpler
had hextoa in string function (itoa, utoa are still a bit buggy)
first version of joypas sample (need nicer output)