In OTL as i understand Saddam was asking for peace as early as 1981. The iranians tooks back all thier territory occupied by Iraq in the early stage by mid-1982, but the mullahs decided to invade Iraq rather than stop, dreaming of their shia empire. But what if Khomeini has a lucid moment and actually decides to take Saddam's offer and make peace at the best moment, Iran just defeated Iraq and took all it's territory back, they have the high ground with all the propaganda and moral benefit this entitles.
As i understand USSR was actively courting Iran, if the war ends in 1982 the reproachment that OTL happend only in late 1980s could happen from 1982. What effect would this have, would Iran actually end up HELPING USSR in Afghanistan against the US western sponsored jihadists, and have a major role into the 1990s, fighting against Osama and his ilk that are still backed by the americans?
With much less damage to Iran's and Iraq' economy would they have enough to funnel into their nuclear programs and both get the bomb in the nineties?
And if the war ends in 1982 what will Saddam do, after being defeated would he still get proped by the GCC and the west against the "iranian threat", maybe still invade Kuweit in say 1985 and actually keep it? Or would he get duly eliminated for his failure and replaced with someone else?
What about the influence of all this on the arab-israeli conflict?
Again, no nuclear wars of any kind to be considered.