How do you reset the code on a locked radio on a 1998 Pontiac grand am?

Those codes come from the computer connection. It is a theft protection matching the radio to the car. See an AC/Delco repair shop or your local GM dealer.