I have a 1990 Nissan 240SX SE, SOHC

im suspecting the timing is off on the car beacuse when ever i rev it the rpm really bogs up and when the car gets to 1000rpm or lower it just dies out

how do I fix the timing problem for the car, I cant get out of the car more than 1 min without it shutting off