This isn't a computer problem. The engine isn't cranking, so computer controls aren't even in the picture yet.
You said the engine would stall at times, but you didn't say if this occurred over minutes, days, or weeks. Start by measuring the battery's voltage with a digital voltmeter. It will be 12.6 volts if it's good and fully-charged. If you find 12.2 volts, it's good but discharged. If it's closer to 11 volts, it has a shorted cell and must be replaced.
If the voltage is low, charge the battery at a slow rate for an hour, then see if the engine cranks and starts. If it does, measure the battery's voltage again with the engine running. You must find between 13.75 and 14.75 volts. If it is low, suspect the generator. If it is okay, that only means it is okay to perform the second half of the tests, and that requires a professional load tester to test for full-load output current and "ripple" voltage. If the generator has one failed diode of the six, you will only be able to get exactly one third of its rated current and ripple voltage will be "high". 30 amps from the common 90 amp generator is not enough to meet the demands of the electrical system under all conditions. The battery will have to make up the difference and will run down slowly over days or weeks.
Since GM redesigned their generators for the '87 model year, they have had a huge problem with repeat failures. If your generator needs to be replaced, to reduce the number of those repeat failures, replace the battery at the same time unless it is less than about two years old. These generators develop huge voltage spikes that can damage the internal diodes, internal voltage regulator, and interfere with computer sensor signals. The battery absorbs and dampens those harmful voltage spikes but as they age, they lose their ability to do that. The old battery will still crank the engine just fine, and it can be used in any other car as long as it's not a GM product.
SPONSORED LINKS
Sunday, July 10th, 2016 AT 8:32 PM