More Adhoc functions implemented

i see, i didn't know it was a test on a real psp :) i thought the return value was just leftover value while being used by the function, i guess i'll change it back to int