Download the CodeVision free demo from:
**broken link removed**
You can run the wizard to generate the USART code: both with polling and with interruptions. Then you can look the .asm
file. Besides in the library there should be the source for the printf function.