The diagram I posted could b for early Eruope.
Is your bike a Euro import??
What I have found. No guarantees
I have a 77D euro diagram on my laptop. A few minor differences
No reserve lighting unit. There is a light checke though
Where. 5T's diagram has a small 6 pin coupling coming off the left handle switch on the Euro they are all bulletconnectors.
Taco; 2 pilot, high beam, and (maybe), a brakeling warning, lights.
Pilot box; 2 turn indicators, neutral and brakelight.
Same as 5T's diagram
Speedo scencer auto off indicater switch. All except Germany???
On the US 77D, Yamaha removed the rear brake warning Sencer mid way through the year.
???? Don't know if they did that with other countries. This next part relates to the rear brake warning Sencer and wiring.
R/W from kill switch has a join run off it to a 3 pin, (small blade) connector. This will b in the headlight
This small connector has Y (headlight), and L/R, (brake pad warning light) Taco pilot lights pig tail
Back to loom
....Follow on the R/W, past connector, goes to safety relay on 3 pin connector, out on a bullet connector to solenoid.
Back to 3 pin small blade connector. In headlight
R/W, (power) goes to pilot light in taco, out on a L/R, (taco pigtail), back to 3 pin small blade connector, runs to rear wheel brake lining switch.
NOTE: somewhere off that wire is a diode, (with power through it off (L/R), on B wire through diode, to W/B wire, that joins into L/W from Solenoid .......the diode will be sticking out of the loom. Can't missit
5T's has a resister, (16), not on my diagram.
I don't know what one will work for you or what you have. ....I can't post from my laptop hense this long tirade and description of the differences.
.