Implement all serial routines in ASM. Split serial and stdio.