This sounds backwards to me. Yellow to the battery and red to the key (accessory).
Old Pioneers had weird colors IIRC there was an orange (which is normally used for illumination) that was the constant.
But you don't have to guess, they almost always have a wiring diagram printed on top of the...