Logic for addressing modes can now be called within functions.