Switch to assembler for cputc implementation.
Remove unnecessary commented code.
Enhancements for cursor calculation

Fix handling of newlines.
Wrap around to top of screen when newline occurs
in last line.
Initialize screen width in crt0.s.
Copied wherex, wherey and ctype implementations from CBM