Download R4CCE, it is a Cheat Code Editor, simply import the USRCHEAT,DAT from your rom, choose the game you want to add new codes for and select add new code a voila you're done.
If you need any further help or sources, just say so, I can post a link for R4CCE and give a written step-by-step...