Check Engine light goes on after about 10 min on 1992 Chevrolet S10

Ceheck Engine light goes on after engine warms up...runs rough and idles up and down. 140,000 miles

Asked by for the 1992 Chevrolet S10
A proper diagnostic test will be necessary to find out what has failed and provide a course of repair. Too many items of possible concern to imagine.