Implement computeEffectiveAddress(). Solves part of basic/bug632901.js.