Everything said in here so far is correct. How much of it is useful depends on exactly what the OP is trying to do.
If he wants to transplant the 87 engine into the 89 body, then it will be plug and play, just block off the EGR.
If he wants to put the 89 engine in the 87 the reverse applies, he will likely need to switch one exhaust manifold and the intake to add the EGR system.
If he wants to move harnesses between the vehicles the most efficient way to go about that is to also take the dash from the donor. The 1st gen (83-88) RBVs used a "root", a big rubber grommet that had about 6 or 7 legs of wiring that runs through the firewall into the engine bay and individual connectors at the end of each leg. The gen 2 (89-92) used the BWP (Big White Plug), which is two halves that bolt together at the firewall to connect the dash and engine bay harnesses and these are 100% incompatible.