Tricky. The problem with swapping engines from very different model years is the whole electronics system will be completely different. The 82 would have had a primitive ECU and maybe carbs? The 90 had electronic fuel injection and diagnostic abilities. The fuel/air mixture and timing profile programmed into the ECU will be completely different for the 440 than the 318. You'll probably have to swap a lot of the electronics and sensors from the 82 into the 90 to get it to run properly. When I thought about doing this swap the easiest way I could see would be to retrofit carbs and an old dizzy with points onto the enigne. The fuel line pressure will be different for carbs and SFI aswell.
On my B250 there are several large cables from the battery that go above the engine to the alternator/starter, and are spliced into the various subcircuits near the brake booster. The color of the large cables is NOT A GUARANTEE OF POLARITY - a couple of black cables are actually +12v.
I've attached the pages from the manual for my van about the starting/charging circuits. You'll need the manuals for both vehicles, and a multimeter, as you'll have to splice the corresponding wires from each year's vehicle to each other (which may be different colors). There are two crap push-fit bullet-type connectors on the battery cables which seem to work loose and corrode.
I've started sticking labels on each wire so I know what circuit they supply - over the decades the original wire colors have faded so no longer match what is in the manual!
Good luck