Move Input/Output routines to io.asm