changed initMem to use writeMem
tests for absolute args