made new addressing mode switch function