Just identify the power wires with a multimeter - there will be one that's always +ve, one +ve accessories, and one -ve.
Once you've got those worked out you can just test the speaker wires by connecting them to a stereo and seeing which speaker makes sound with each pair of wires.
Or, if you're lucky, Nissan will use standard Nissan colours as follows:
LIGHT GREEN AMPLIFIER POWER This is an output from the unit. When turned on, the unit should apply +12V power to this signal. If you have the
Nissan premium sound package, its amplifiers use this signal to control their on/off state. Connect this to the ANTENNA POWER output on the new unit.
RED REAR LEFT SPEAKER +
GREEN REAR LEFT SPEAKER - DO NOT CONNECT TO GROUND
VIOLET REAR RIGHT SPEAKER +
PINK REAR RIGHT SPEAKER - DO NOT CONNECT TO GROUND
BLUE +12V ACCESSORY This is the main power input to the unit. It is active only when the ignition is in the ACC or ON positions.
RED W/YELLOW STRIPE ILLUMINATION - NOT USED
RED W/BLUE STRIPE ILLUMINATION + NOT USED
BLACK W/RED STRIPE ANTENNA POWER This is an output from the unit. When turned on, the unit should apply +12V power to this signal. The power antenna uses this signal to control its up/down state. Connect to the
ANTENNA POWER output on the new unit.
RED W/BLACK STRIPE +12V BATTERY This is the backup (memory and clock) power input to the unit. It is always active.
BROWN W/WHITE STRIPE FRONT RIGHT SPEAKER - (correction; was + in previous revision of this document) DO NOT CONNECT TO GROUND
BROWN FRONT RIGHT SPEAKER + (correction, was – in previous revision of this document)
BLUE W/YELLOW STRIPE FRONT LEFT SPEAKER - DO NOT CONNECT TO GROUND
BLUE W/WHITE STRIPE FRONT LEFT SPEAKER +
BLACK (DOES NOT EXIST
IN CAR’S WIRING
HARNESS) GROUND This is the ground connection for the unit. It should be
connected to the car’s metal frame. The shifter boot retainer ring is an ideal place to attach to.
from
http://www.bagotronix.com/nissan_240sx_stereo.pdf
Beware: DO NOT assume the wire colours above are correct for your car. Most importantly check confirm that the power wires are the ones listed, otherwise you may accidentally attach power to a speaker output on your stereo with unknown but probably ungood consequences.
On the other hand if they do match let us all know for future reference.
Jason
This is not legal advice.