Moved DMA feature from memory.cpp to the cpu