split common IO functions
move addition of dram offset to disp.c
wrap VE engine and memory handling into nice functions