#include <mega128.h>
#include <stdio.h> /* prototype declarations for I/O functions */
#define _ALTERNATE_GETCHAR_
char getchar(void) {
while ((UCSR1A & (1<<RXC1))==0);
return UDR1; }
#define _ALTERNATE_PUTCHAR_
void putchar(char c) {
while ((UCSR1A & (1<<UDRE1))==0);
UDR1=c; }