Changed memory functions to more standard ones (inb, outb, ...)