move some I/O declarations to io.asm