added addr_pointer input for the decoding unit