why dose my engine light come on when i press on gas? on 1990 Chevrolet Beretta

my engine light comes on when i push on the gas panle and go off when i dont?

Asked by for the 1990 Chevrolet Beretta
Get it diagnosed by a shop, there are hundreds of possibilities and without a proper diagnosis we'd only be guessing.
Here are some near you: