Add address decoder and h/v toggle logic.