Well that is good as they should be the same so hopefully the ecu might too. If it were me... I would first try to plug it all in and see if it responds. Easier to use what you have. Problems will be if some components are differeent. Things were simpler then but as the engine is older it might not have some things the previous engine did. You may have to reprogram the ecu so it knows what componentts it hss. Or you may need an ecu to match the older engine. software called Multi ECU Scan can do some of this its called proxy alignment. If you use the original cars sensors or have tyem to hand they may get you out of trouble as you can substitute them if errors are caused by older sensors sendong messages to a newer ecu. Multi ECu Scan or
MES is supplied by uk based companycalled Gendan .co .uk
They also have a forum and the staff I am sure would be a mine of information on ecu compatibility. May be email and ssk if your ecuis compatiblewith the engine. There may be issues with ignition timing and fuel injection. i guess its possible to tell the ecu, or get another and deal with the other things it controls.
Back when these cars were made thing were simpler. So
mes may well ve all you need.