API consolidation

C and Assembly were using two different methods for calling OS
functions. Consolidated to the C method. Apps are a little big larger
now, but the kernel is smaller (saved 176 bytes).